From ed0fce9aa62e9705c3b6c65f9c806f73fb8d6506 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Wed, 29 Mar 2023 23:17:00 +0200 Subject: [PATCH] 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 ``` --- crates/nu-utils/standard_library/test_dirs.nu | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/nu-utils/standard_library/test_dirs.nu b/crates/nu-utils/standard_library/test_dirs.nu index 24232caaf..db88f1326 100644 --- a/crates/nu-utils/standard_library/test_dirs.nu +++ b/crates/nu-utils/standard_library/test_dirs.nu @@ -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|