mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
This reverts commit f0e93c2fa9
(PR #7417).
I'm currently [working on improving cell
paths](https://github.com/nushell/nushell/issues/7498#issuecomment-1356834798),
and I realized that I would need to make several improvements to `into
cellpath` along the lines of Jakub's comment here:
https://github.com/nushell/nushell/pull/7417#issuecomment-1345264955
I don't think `into cellpath` is quite ready for prime-time, and I'd
like to remove it before the upcoming release.
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
use crate::tests::{run_test, TestResult};
|
||||
|
||||
use super::run_test_with_default_config;
|
||||
|
||||
#[test]
|
||||
fn shorthand_env_1() -> TestResult {
|
||||
run_test(r#"FOO=BAZ $env.FOO"#, "BAZ")
|
||||
@ -24,11 +22,3 @@ fn convert_non_string_env_var_to_nothing() -> TestResult {
|
||||
"nothing",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn convert_string_to_env_var_cellpath() -> TestResult {
|
||||
run_test_with_default_config(
|
||||
r#"let p = 'ls.use_ls_colors'; $env.config | upsert ($p | into cellpath) false | get ls.use_ls_colors"#,
|
||||
"false",
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user