NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/tape/test/todo_single.js
2023-09-14 14:47:11 +08:00

38 lines
1.0 KiB
JavaScript

var tap = require('tap');
var tape = require('../');
var concat = require('concat-stream');
var common = require('./common');
var stripFullStack = common.stripFullStack;
tap.test('tape todo test', function (assert) {
var test = tape.createHarness({ exit: false });
assert.plan(1);
test.createStream().pipe(concat(function (body) {
assert.equal(
stripFullStack(body.toString('utf8')),
'TAP version 13\n'
+ '# TODO failure\n'
+ 'not ok 1 should be equal # TODO\n'
+ ' ---\n'
+ ' operator: equal\n'
+ ' expected: false\n'
+ ' actual: true\n'
+ ' at: Test.<anonymous> ($TEST/todo_single.js:$LINE:$COL)\n'
+ ' ...\n'
+ '\n'
+ '1..1\n'
+ '# tests 1\n'
+ '# pass 1\n'
+ '\n'
+ '# ok\n'
);
}));
test('failure', { todo: true }, function (t) {
t.equal(true, false);
t.end();
});
});