Last active
December 10, 2015 13:19
-
-
Save Raynos/4440178 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require("TAP-winning/assert")() | |
assert.equal() ... | |
setTimeout(function () { | |
assert.end() | |
}, 1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test = require("TAP-winning/test") | |
var after = require("after") | |
// simplest test, no async | |
test('foo', function(assert) { | |
assert.equal() ... | |
}); | |
test('bar', function(assert, done) { | |
setTimeout(done, 1000); | |
}); | |
test('extra', function(assert, done) { | |
done = after(2, done) | |
setTimeout(done, 2000); | |
setTimeout(done, 1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment