mirror of
https://github.com/nushell/nushell
synced 2025-01-13 21:55:07 +00:00
update tests
This commit is contained in:
parent
af94da4371
commit
6ae94ef513
1 changed files with 2 additions and 2 deletions
|
@ -386,7 +386,7 @@ fn use_def_import_after_hide() -> TestResult {
|
||||||
#[ignore]
|
#[ignore]
|
||||||
fn use_env_import_after_hide() -> TestResult {
|
fn use_env_import_after_hide() -> TestResult {
|
||||||
run_test(
|
run_test(
|
||||||
r#"module spam { export env foo { "foo" } }; use spam foo; hide-env foo; use spam foo; $env.foo"#,
|
r#"module spam { export-env { let-env foo = "foo" } }; overlay use spam; hide-env foo; overlay use spam; $env.foo"#,
|
||||||
"foo",
|
"foo",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -419,7 +419,7 @@ fn hides_all_decls_within_scope() -> TestResult {
|
||||||
#[ignore]
|
#[ignore]
|
||||||
fn hides_all_envs_within_scope() -> TestResult {
|
fn hides_all_envs_within_scope() -> TestResult {
|
||||||
fail_test(
|
fail_test(
|
||||||
r#"module spam { export env foo { "bar" } }; let-env foo = "foo"; use spam foo; hide-env foo; $env.foo"#,
|
r#"module spam { export-env { let-env foo = "bar" } }; let-env foo = "foo"; overlay use spam; hide-env foo; $env.foo"#,
|
||||||
"did you mean",
|
"did you mean",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue