Skip to content

Commit

Permalink
Updated zap dependency, deleted wrapper
Browse files Browse the repository at this point in the history
zap 0.2.5 returns non-zero if tests fail, therefore the wrapper is not
required anymore to do a 'npm test' properly.
  • Loading branch information
Leonidas-from-XIV committed Nov 18, 2012
1 parent f8ae75e commit b9c2164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions Cakefile
Expand Up @@ -4,13 +4,6 @@ task 'build', 'continually build the JavaScript code', ->
coffee = spawn 'coffee', ['-cw', '-o', 'lib', 'src']
coffee.stdout.on 'data', (data) -> console.log data.toString().trim()

task 'test', 'run the test suite', ->
# wrapper around zap to return nonzero if tests failed
exec 'zap', (err, stdout, stderr) ->
console.log stdout.trim()
if stdout.indexOf("\u001b[1;31mfailed\u001b[0m") != -1
process.exit 1

task 'doc', 'rebuild the Docco documentation', ->
exec([
'docco src/xml2js.coffee'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -26,7 +26,7 @@
"lib": "./lib"
},
"scripts" : {
"test": "cake test"
"test": "zap"
},
"repository" : {
"type" : "git",
Expand All @@ -37,7 +37,7 @@
},
"devDependencies" : {
"coffee-script" : ">=1.0.1",
"zap" : ">=0.2.4-3",
"zap" : ">=0.2.5",
"docco" : ">=0.3.0"
}
}

0 comments on commit b9c2164

Please sign in to comment.