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
4986728c
Commit
4986728c
authored
Jun 21, 2012
by
David Dollar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for invalid engine version
parent
ef979ea1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
test
bin/test
+5
-0
package.json
test/package-json-invalidversion/package.json
+9
-0
No files found.
bin/test
View file @
4986728c
...
@@ -35,6 +35,11 @@ testPackageJsonWithoutVersion() {
...
@@ -35,6 +35,11 @@ testPackageJsonWithoutVersion() {
assertCapturedSuccess
assertCapturedSuccess
}
}
testPackageJsonWithInvalidVersion
()
{
compile
"package-json-invalidversion"
assertCapturedError 1
"Requested engine npm version 1.1.5 does not"
}
testNothingCached
()
{
testNothingCached
()
{
cache
=
$(
mktmpdir
)
cache
=
$(
mktmpdir
)
compile
"package-json-version"
$cache
compile
"package-json-version"
$cache
...
...
test/package-json-invalidversion/package.json
0 → 100644
View file @
4986728c
{
"name"
:
"myapp"
,
"version"
:
"0.0.1"
,
"engines"
:
{
"node"
:
"0.6.11"
,
"npm"
:
"1.1.5"
}
}
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