We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cdbdae commit ea34a86Copy full SHA for ea34a86
test/fast/Unit tests/nvm_die_on_prefix
@@ -63,7 +63,8 @@ sed() {
63
echo "./bad prefix"
64
}
65
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\"
+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\"
68
Run \`npm config delete prefix\` or \`foo\` to unset it."
69
EXIT_CODE="$(nvm_die_on_prefix 0 foo >/dev/null 2>&1; echo $?)"
70
[ "_$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