You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
542 B

#[allow(unused_imports)]
use crate::shellcode::*;
test_shell!(Bash, Zsh, Fish, PowerShell; {
EvalFnmEnv::default()
.then(Call::new("fnm", vec!["install", "12.0.0"]))
.then(Call::new("fnm", vec!["alias", "12.0.0", "hello"]))
.then(OutputContains::new(
OutputContains::new(Call::new("fnm", vec!["ls"]), "v12.0.0"),
"hello",
))
.then(Call::new("fnm", vec!["uninstall", "hello"]))
.then(ExpectCommandOutput::new(Call::new("fnm", vec!["ls"]), "* system", "fnm ls"))
});