Skip to content

Commit ea34a86

Browse files
committed
fix test
1 parent 4cdbdae commit ea34a86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/fast/Unit tests/nvm_die_on_prefix

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ sed() {
6363
echo "./bad prefix"
6464
}
6565
OUTPUT="$(nvm_die_on_prefix 0 foo 2>&1)"
66-
EXPECTED_OUTPUT="nvm is not compatible with the npm config \"prefix\" option: currently set to \"./bad prefix\"
66+
EXPECTED_OUTPUT="Incompatible prefix setting prefix=./bad prefix found in the config file ./.npmrc
67+
nvm is not compatible with the npm config \"prefix\" option: currently set to \"./bad prefix\"
6768
Run \`npm config delete prefix\` or \`foo\` to unset it."
6869
EXIT_CODE="$(nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)"
6970
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_die_on_prefix 0 foo' did not error with '$EXPECTED_OUTPUT' with bad prefix set; got '$OUTPUT'"

0 commit comments

Comments
 (0)