forked from extern/nushell
test Co-authored-by: Ricardo Monteiro <ricardo.monteiro@getmanta.com>
This commit is contained in:
@ -299,3 +299,15 @@ fn open_ignore_ansi() {
|
||||
assert!(actual.err.is_empty());
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn open_no_parameter() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
r#"
|
||||
open
|
||||
"#
|
||||
);
|
||||
|
||||
assert!(actual.err.contains("needs filename"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user