You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/fast/Unit tests/nvm_find_up
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,5 +21,6 @@ TEST_DIR="$PWD"
21
21
[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b nvm_find_up 'test')"="~$TEST_DIR/tmp_nvm_find_up" ] || die "failed to find 2 dirs up"
22
22
[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b/c nvm_find_up 'test')"="~$TEST_DIR/tmp_nvm_find_up/a/b/c" ] || die "failed to find in current dir"
23
23
[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b/c/d nvm_find_up 'test')"="~$TEST_DIR/tmp_nvm_find_up/a/b/c" ] || die "failed to find 1 level up from current dir"
24
+
[ "~$(PWD="." nvm_find_up 'test')"="~." ] || die "failed to handle '.' output from pwd"
0 commit comments