commando.html5/node_modules/tap/test-disabled/bailout.js
Captain Nick Lucifer* a0bc2d79de dot.dot.dot.exampol
2023-03-10 23:21:16 +05:45

36 lines
695 B
JavaScript

var tap = require("tap")
, test = tap.test
test("bailout test", { skip: false }, function (t) {
// t.once("bailout", function () {
// console.error("bailout event")//, t)
// t.clear()
// })
// t.once("end", function () {
// console.error("end event")
// })
// simulate three tests where the second bails out.
t.test("first", function (t) {
t.pass("this is ok")
t.end()
})
t.test("bailout", function (t) {
console.error("bailout test")
t.pass("pass")
t.bailout("bail out message")
t.fail("fail")
t.end()
})
t.test("second (should not happen)", function (t) {
t.fail("this should not happen")
t.end()
})
t.end()
})