Skip to content

Commit 583a371

Browse files
Add test for removing mods using slug
1 parent fe352af commit 583a371

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/tests.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,28 @@ async fn remove_id() {
511511
);
512512
}
513513

514+
#[tokio::test(flavor = "multi_thread")]
515+
async fn remove_slug() {
516+
// Load the slugs into the config first
517+
let mut args = get_args(
518+
SubCommands::List {
519+
verbose: true,
520+
markdown: false,
521+
},
522+
Some("two_profiles_one_empty"),
523+
);
524+
assert_matches!(actual_main(args.clone()).await, Ok(()));
525+
526+
args.subcommand = SubCommands::Remove {
527+
mod_names: vec![
528+
"starlight".to_owned(),
529+
"incendium".to_owned(),
530+
"sodium".to_owned(),
531+
],
532+
};
533+
assert_matches!(actual_main(args).await, Ok(()));
534+
}
535+
514536
#[tokio::test(flavor = "multi_thread")]
515537
async fn delete_profile() {
516538
assert_matches!(

0 commit comments

Comments
 (0)