Commit c00dafd9 authored by Hunter Loftis's avatar Hunter Loftis

test and implementation to show error on failed npm version bootstrap

parent 7b28eb31
...@@ -104,7 +104,7 @@ if [ "$npm_engine" != "" ]; then ...@@ -104,7 +104,7 @@ if [ "$npm_engine" != "" ]; then
info "npm `npm --version` already installed with node" info "npm `npm --version` already installed with node"
else else
info "Downloading and installing npm $npm_engine (replacing version `npm --version`)..." info "Downloading and installing npm $npm_engine (replacing version `npm --version`)..."
npm install --quiet -g npm@$npm_engine > /dev/null 2>&1 | indent npm install --quiet -g npm@$npm_engine 2>&1 >/dev/null | indent
fi fi
fi fi
......
...@@ -54,6 +54,12 @@ testOldNpm() { ...@@ -54,6 +54,12 @@ testOldNpm() {
assertCapturedSuccess assertCapturedSuccess
} }
testNonexistentNpm() {
compile "nonexistent-npm"
assertCaptured "version not found: npm@1.1.65"
assertCapturedError 1 ""
}
testSameNpm() { testSameNpm() {
compile "same-npm" compile "same-npm"
assertCaptured "npm 1.4.28 already installed" assertCaptured "npm 1.4.28 already installed"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment