Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit 3fa6bff

Browse files
committed
fix tests
1 parent e022da9 commit 3fa6bff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/tests.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,19 @@ fn args_get() {
3232
assert_eq!(args1.c_video_codec, types::VideoCodec::H264);
3333
assert_eq!(args1.c_video_quality, 1080);
3434
assert_eq!(args1.c_audio_format, types::AudioFormat::MP3);
35-
assert_eq!(args1.c_audio_only, false);
36-
assert_eq!(args1.c_audio_muted, false);
35+
assert_eq!(args1.c_download_mode, types::DownloadMode::Auto);
3736
assert_eq!(args1.c_twitter_gif, false);
3837

3938
assert_eq!(args2.c_video_codec, types::VideoCodec::AV1);
4039
assert_eq!(args3.c_video_quality, 1440);
4140
assert_eq!(args3.c_url, Some(url.to_string()));
4241
assert_eq!(args4.c_video_codec, types::VideoCodec::VP9);
4342
assert_eq!(args4.c_video_quality, 720);
44-
assert_eq!(args5.c_audio_only, true);
43+
assert_eq!(args5.c_download_mode, types::DownloadMode::Audio);
4544
assert_eq!(args5.c_audio_format, types::AudioFormat::OGG);
4645
assert_eq!(args5.out_filename, Some("foo.ogg".into()));
4746
assert_eq!(args6.c_twitter_gif, true);
48-
assert_eq!(args6.c_audio_muted, true);
47+
assert_eq!(args6.c_download_mode, types::DownloadMode::Mute);
4948
assert_eq!(args6.out_filename, Some("bar.gif".into()));
5049
}
5150

0 commit comments

Comments
 (0)