Commit b28f8175 authored by Hunter Loftis's avatar Hunter Loftis

fix tests for node v5

parent b879e848
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
## Pending ## Pending
Enables compiling the same directory multiple times Enables compiling the same directory multiple times
Updates tests for Node v5
## v86 (2015-10-08) ## v86 (2015-10-08)
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
"thisdoesnotexist": "*" "thisdoesnotexist": "*"
}, },
"engines": { "engines": {
"npm": "~1.2" "node": "0.10.x",
"npm": "1.4.28"
}, },
"scripts": { "scripts": {
"start": "node server.js" "start": "node server.js"
......
#!/usr/bin/env bash #!/usr/bin/env bash
# See README.md for info on running these tests. # See README.md for info on running these tests.
testWarningsOnFailure() {
compile "many-warnings"
assertCaptured "troubleshooting-node-deploys"
assertCaptured "node_modules checked into source"
assertCaptured "has several known issues"
assertNotCaptured "please submit a ticket"
assertCapturedError
}
testMultipleRuns() { testMultipleRuns() {
local compileDir=$(mktmpdir) local compileDir=$(mktmpdir)
local cacheDir=$(mktmpdir) local cacheDir=$(mktmpdir)
...@@ -207,7 +216,7 @@ testNoVersion() { ...@@ -207,7 +216,7 @@ testNoVersion() {
compile "no-version" compile "no-version"
assertCaptured "engines.node (package.json): unspecified" assertCaptured "engines.node (package.json): unspecified"
assertCaptured "Resolving node version (latest stable) via semver.io" assertCaptured "Resolving node version (latest stable) via semver.io"
assertCaptured "Downloading and installing node 4." assertCaptured "Downloading and installing node 5."
assertCapturedSuccess assertCapturedSuccess
} }
...@@ -281,16 +290,6 @@ testFailingBuild() { ...@@ -281,16 +290,6 @@ testFailingBuild() {
assertCapturedError 1 "" assertCapturedError 1 ""
} }
testWarningsOnFailure() {
compile "many-warnings"
assertCaptured "troubleshooting-node-deploys"
assertCaptured "Node version not specified"
assertCaptured "node_modules checked into source"
assertCaptured "has several known issues"
assertNotCaptured "please submit a ticket"
assertCapturedError
}
testTicketOnFailure() { testTicketOnFailure() {
compile "invalid-dependency" compile "invalid-dependency"
assertCaptured "troubleshooting-node-deploys" assertCaptured "troubleshooting-node-deploys"
...@@ -311,7 +310,7 @@ testDangerousRangeStar() { ...@@ -311,7 +310,7 @@ testDangerousRangeStar() {
compile "dangerous-range-star" compile "dangerous-range-star"
assertCaptured "Dangerous semver range" assertCaptured "Dangerous semver range"
assertCaptured "Resolving node version * via semver.io" assertCaptured "Resolving node version * via semver.io"
assertCaptured "Downloading and installing node 4." assertCaptured "Downloading and installing node 5."
assertCapturedError assertCapturedError
} }
...@@ -319,14 +318,14 @@ testDangerousRangeGreaterThan() { ...@@ -319,14 +318,14 @@ testDangerousRangeGreaterThan() {
compile "dangerous-range-greater-than" compile "dangerous-range-greater-than"
assertCaptured "Dangerous semver range" assertCaptured "Dangerous semver range"
assertCaptured "Resolving node version >0.4 via semver.io" assertCaptured "Resolving node version >0.4 via semver.io"
assertCaptured "Downloading and installing node 4." assertCaptured "Downloading and installing node 5."
assertCapturedError assertCapturedError
} }
testRangeWithSpace() { testRangeWithSpace() {
compile "range-with-space" compile "range-with-space"
assertCaptured "Resolving node version >= 0.8.x via semver.io" assertCaptured "Resolving node version >= 0.8.x via semver.io"
assertCaptured "Downloading and installing node 4." assertCaptured "Downloading and installing node 5."
assertCapturedSuccess assertCapturedSuccess
} }
......
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