Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Mar 23, 2012
1 parent 5b75769 commit a8a953e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/test
Expand Up @@ -4,29 +4,30 @@
# Create a Heroku app with the following buildpack:
# https://github.com/ddollar/buildpack-test
#
# Push this buildpack to the Heroku app to run the tests
# Push this Node.js buildpack to that Heroku app to
# run the tests
#

testDetectWithPackageJson() {
detect package-json-version
detect "package-json-version"
assertCaptured "Node.js"
assertCapturedSuccess
}

testDetectWithoutPackageJson() {
detect no-package-json
detect "no-package-json"
assertCapturedError 1 ""
}

testPackageJsonWithVersion() {
compile package-json-version
compile "package-json-version"
assertCaptured "Using Node.js version: 0.6.11"
assertCaptured "Using npm version: 1.1.9"
assertCapturedSuccess
}

testPackageJsonWithNoVersion() {
compile package-json-noversion
compile "package-json-noversion"
assertCaptured "Using Node.js version: 0.4.7"
assertCaptured "Using npm version: 1.0.106"
assertCapturedSuccess
Expand Down

0 comments on commit a8a953e

Please sign in to comment.