forked from extern/nushell
REFACTOR: remove the redundant path expand
from the tests of the standard library (#8666)
Related to #8653. # Description This PR removes the redundant `path expand`s introduced in #8552 and #8576. # User-Facing Changes ``` $nothing ``` # Tests + Formatting the tests still pass on linux. # After Submitting ``` $nothing ```
This commit is contained in:
parent
995603b08c
commit
ed0fce9aa6
@ -15,10 +15,6 @@ export def test_dirs_command [] {
|
||||
|
||||
try {
|
||||
mkdir $base_path $path_a $path_b
|
||||
# Now that we've created the directories, we need to expand them to include symlinks
|
||||
let base_path = ($base_path | path expand)
|
||||
let path_a = ($path_a | path expand)
|
||||
let path_b = ($path_b | path expand)
|
||||
|
||||
cd $base_path
|
||||
use std.nu "dirs next"
|
||||
@ -49,7 +45,7 @@ export def test_dirs_command [] {
|
||||
|
||||
dirs drop
|
||||
assert length $env.DIRS_LIST 2 "drop removes from list"
|
||||
assert equal ($base_path | path expand) $env.PWD "drop changes PWD to next in list (after dropped element)"
|
||||
assert equal $base_path $env.PWD "drop changes PWD to next in list (after dropped element)"
|
||||
|
||||
assert equal (dirs show) [[active path]; [true $base_path] [false $path_b]] "show table contains expected information"
|
||||
} catch { |error|
|
||||
|
Loading…
Reference in New Issue
Block a user