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
b28f8175
Commit
b28f8175
authored
Oct 29, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests for node v5
parent
b879e848
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
CHANGELOG.md
CHANGELOG.md
+1
-0
package.json
test/fixtures/many-warnings/package.json
+2
-1
run
test/run
+13
-14
No files found.
CHANGELOG.md
View file @
b28f8175
...
@@ -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)
...
...
test/fixtures/many-warnings/package.json
View file @
b28f8175
...
@@ -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"
...
...
test/run
View file @
b28f8175
#!/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
}
}
...
...
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