Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
c00dafd9
Commit
c00dafd9
authored
Jan 08, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test and implementation to show error on failed npm version bootstrap
parent
7b28eb31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
compile
bin/compile
+1
-1
test
bin/test
+6
-0
No files found.
bin/compile
View file @
c00dafd9
...
...
@@ -104,7 +104,7 @@ if [ "$npm_engine" != "" ]; then
info
"npm
`
npm
--version
`
already installed with node"
else
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
...
...
bin/test
View file @
c00dafd9
...
...
@@ -54,6 +54,12 @@ testOldNpm() {
assertCapturedSuccess
}
testNonexistentNpm
()
{
compile
"nonexistent-npm"
assertCaptured
"version not found: npm@1.1.65"
assertCapturedError 1
""
}
testSameNpm
()
{
compile
"same-npm"
assertCaptured
"npm 1.4.28 already installed"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment