Repositorio del curso CCOM4030 el semestre B91 del proyecto Paz para la Mujer

123456789101112131415161718192021
  1. var tap = require("tap");
  2. var tape = require("../").createHarness();
  3. //Because this test passing depends on a failure,
  4. //we must direct the failing output of the inner test
  5. var noop = function () {};
  6. var mockSink = {on:noop, removeListener:noop, emit:noop, end:noop};
  7. tape.createStream().pipe(mockSink);
  8. tap.test("on failure", { timeout: 1000 }, function (tt) {
  9. tt.plan(1);
  10. tape("dummy test", function (t) {
  11. t.fail();
  12. t.end();
  13. });
  14. tape.onFailure(function () {
  15. tt.pass("tape ended");
  16. });
  17. });