dot.dot.dot.exampol
This commit is contained in:
commit
a0bc2d79de
406 changed files with 34577 additions and 0 deletions
36
node_modules/tap/test-disabled/bailout.js
generated
vendored
Normal file
36
node_modules/tap/test-disabled/bailout.js
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
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()
|
||||
|
||||
})
|
1
node_modules/tap/test-disabled/foo.js
generated
vendored
Normal file
1
node_modules/tap/test-disabled/foo.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
process.stdin
|
16
node_modules/tap/test-disabled/t.js
generated
vendored
Normal file
16
node_modules/tap/test-disabled/t.js
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
var test = require('tap').test;
|
||||
|
||||
function foo() {
|
||||
throw new Error('one');
|
||||
}
|
||||
|
||||
test('demonstrate bug in t.throws', function (t) {
|
||||
t.throws(
|
||||
function () {
|
||||
foo();
|
||||
},
|
||||
new Error('two')),
|
||||
// "this should throw",
|
||||
// {}); // not 'one'!
|
||||
t.end();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue