Permalink
Browse files

Rename test.finish() to test.done().

  • Loading branch information...
nornagon committed Sep 4, 2011
1 parent 9fa5cd8 commit 6c7df17d79cfacdb6d6657abf96be8b82bd6f894
Showing with 4 additions and 3 deletions.
  1. +4 −3 bin/zap
View
@@ -15,9 +15,10 @@ try {
if (process.argv[2] === '--one') {
// run a particular test
var test = {
- finish: function () {
+ done: function () {
test._finished++
},
+ finish: function () { this.finish() },
_finished: 0,
fail: function (message) {
sys.print("Test failed: ", message, "\n")
@@ -33,9 +34,9 @@ if (process.argv[2] === '--one') {
process.reallyExit(0)
} else {
if (test._finished == 0) {
- sys.puts("Test didn't call finish().")
+ sys.puts("Test didn't call done().")
} else {
- sys.puts("Test called finish()", test._finished, "times.")
+ sys.puts("Test called done()", test._finished, "times.")
}
process.reallyExit(1)
}

0 comments on commit 6c7df17

Please sign in to comment.