Commit 4986728c authored by David Dollar's avatar David Dollar

add test for invalid engine version

parent ef979ea1
...@@ -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
......
{
"name": "myapp",
"version": "0.0.1",
"engines": {
"node": "0.6.11",
"npm": "1.1.5"
}
}
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