Permalink
Browse files

Merge pull request #4 from Leonidas-from-XIV/master

Update to get rid of warnings
  • Loading branch information...
2 parents ca374b4 + f09069e commit 31e7fc74d88986f1ab65fa6ce0945e1abcf56ec2 @nornagon committed Nov 26, 2011
Showing with 9 additions and 9 deletions.
  1. +9 −9 bin/zap
View
18 bin/zap
@@ -4,7 +4,7 @@
var fs = require('fs')
, path = require('path')
, spawn = require('child_process').spawn
- , sys = require('sys')
+ , util = require('util')
var coffee
try {
@@ -21,7 +21,7 @@ if (process.argv[2] === '--one') {
finish: function () { this.done() },
_finished: 0,
fail: function (message) {
- sys.print("Test failed: ", message, "\n")
+ util.print("Test failed: ", message, "\n")
process.exit(1)
},
}
@@ -34,9 +34,9 @@ if (process.argv[2] === '--one') {
process.reallyExit(0)
} else {
if (test._finished == 0) {
- sys.puts("Test didn't call done().")
+ util.puts("Test didn't call done().")
} else {
- sys.puts("Test called done()", test._finished, "times.")
+ util.puts("Test called done()", test._finished, "times.")
}
process.reallyExit(1)
}
@@ -162,16 +162,16 @@ if (process.argv[2] === '--one') {
if (tests.length <= 0) { return }
var t = tests.shift()
var o = testOrder++
- inOrder(o, function () { sys.print(name(t), "... ") })
+ inOrder(o, function () { util.print(name(t), "... ") })
runOne(t, function (err) {
if (err) {
inOrder(o, function () {
- sys.puts("\x1b[1;31mfailed\x1b[0m")
- sys.puts(err)
+ util.puts("\x1b[1;31mfailed\x1b[0m")
+ util.puts(err)
})
} else {
inOrder(o, function () {
- sys.puts("passed")
+ util.puts("passed")
})
}
doneOrder(o)
@@ -185,4 +185,4 @@ if (process.argv[2] === '--one') {
}
runPar()
-}
+}

0 comments on commit 31e7fc7

Please sign in to comment.