mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
update tests
This commit is contained in:
parent
af94da4371
commit
6ae94ef513
@ -386,7 +386,7 @@ fn use_def_import_after_hide() -> TestResult {
|
||||
#[ignore]
|
||||
fn use_env_import_after_hide() -> TestResult {
|
||||
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",
|
||||
)
|
||||
}
|
||||
@ -419,7 +419,7 @@ fn hides_all_decls_within_scope() -> TestResult {
|
||||
#[ignore]
|
||||
fn hides_all_envs_within_scope() -> TestResult {
|
||||
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",
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user