Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6c7df17d79cfacdb6d6657abf96be8b82bd6f894 1 parent 9fa5cd8
@nornagon authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 bin/zap
View
7 bin/zap
@@ -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)
}
Please sign in to comment.
Something went wrong with that request. Please try again.