Skip to content

Commit

Permalink
make sure node_version is set, test for caching output
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Sep 10, 2013
1 parent c462dcd commit d4e8ad9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ else

if test $default_satisfies; then
status "Using latest stable node version $stable_version"
node_version=$stable_version
else
# Find all available versions from nodejs.org/dist
args=""
Expand Down
1 change: 1 addition & 0 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ testProfileCreated() {
testNodeModulesCached() {
cache=$(mktmpdir)
compile "node-modules-caching" $cache
assertCaptured "Caching node_modules for future builds"
assertEquals "1" "$(ls -1 $cache/node_modules/0.10.18 | wc -l)"
}

Expand Down

0 comments on commit d4e8ad9

Please sign in to comment.