Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

12345678910111213141516171819202122232425262728293031323334353637383940
  1. var tape = require('../');
  2. var tap = require('tap');
  3. var concat = require('concat-stream');
  4. var stripFullStack = require('./common').stripFullStack;
  5. tap.test('array test', function (tt) {
  6. tt.plan(1);
  7. var test = tape.createHarness({ exit : false });
  8. var tc = function (rows) {
  9. tt.same(stripFullStack(rows.toString('utf8')), [
  10. 'TAP version 13',
  11. '# fail',
  12. 'not ok 1 this should fail',
  13. ' ---',
  14. ' operator: fail',
  15. ' at: Test.<anonymous> ($TEST/has spaces.js:$LINE:$COL)',
  16. ' stack: |-',
  17. ' Error: this should fail',
  18. ' [... stack stripped ...]',
  19. ' at Test.<anonymous> ($TEST/has spaces.js:$LINE:$COL)',
  20. ' [... stack stripped ...]',
  21. ' ...',
  22. '',
  23. '1..1',
  24. '# tests 1',
  25. '# pass 0',
  26. '# fail 1',
  27. ''
  28. ].join('\n'));
  29. };
  30. test.createStream().pipe(concat(tc));
  31. test('fail', function (t) {
  32. t.fail('this should fail');
  33. t.end();
  34. });
  35. });