mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 19:21:00 +02:00
Add 'overlay new' command (#5647)
* Add 'overlay new' command * Add missing file
This commit is contained in:
@ -496,3 +496,14 @@ fn reset_overrides() {
|
||||
assert_eq!(actual.out, "foo");
|
||||
assert_eq!(actual_repl.out, "foo");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn overlay_new() {
|
||||
let inp = &[r#"overlay new spam"#, r#"overlay list | last"#];
|
||||
|
||||
let actual = nu!(cwd: "tests/overlays", pipeline(&inp.join("; ")));
|
||||
let actual_repl = nu_repl("tests/overlays", inp);
|
||||
|
||||
assert_eq!(actual.out, "spam");
|
||||
assert_eq!(actual_repl.out, "spam");
|
||||
}
|
||||
|
Reference in New Issue
Block a user