Repositorio del curso CCOM4030 el semestre B91 del proyecto kilometro0

todo_single.js 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. var tap = require('tap');
  2. var tape = require('../');
  3. var concat = require('concat-stream');
  4. var common = require('./common');
  5. var stripFullStack = common.stripFullStack;
  6. tap.test('tape todo test', function (assert) {
  7. var test = tape.createHarness({ exit: false });
  8. assert.plan(1);
  9. test.createStream().pipe(concat(function (body) {
  10. assert.equal(
  11. stripFullStack(body.toString('utf8')),
  12. 'TAP version 13\n'
  13. + '# TODO failure\n'
  14. + 'not ok 1 should be equal # TODO\n'
  15. + ' ---\n'
  16. + ' operator: equal\n'
  17. + ' expected: false\n'
  18. + ' actual: true\n'
  19. + ' at: Test.<anonymous> ($TEST/todo_single.js:$LINE:$COL)\n'
  20. + ' ...\n'
  21. + '\n'
  22. + '1..1\n'
  23. + '# tests 1\n'
  24. + '# pass 1\n'
  25. + '\n'
  26. + '# ok\n'
  27. );
  28. }));
  29. test('failure', { todo: true }, function (t) {
  30. t.equal(true, false);
  31. t.end();
  32. });
  33. });