Assert module but outputs TAP
var assert = require("assert-tap")("my example")
// use the assert api
assert.equal("one", "one")
// outputs TAP to console.
// it's that easy.
// make sure to call assert.end() to end your example
assert.end()
test
interfacevar test = require("assert-tap").test
test("my test", function (assert) {
// some assertions
// Now I am done
assert.end()
})
test("my second test", function (assert) {
// some assertions
// can end asynchronously
setTimeout(function () {
assert.end()
}, 500)
})
npm install assert-tap