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:
Antoine Stevan 2023-03-29 23:17:00 +02:00 committed by GitHub
parent 995603b08c
commit ed0fce9aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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|