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

1234567891011121314151617181920
  1. var tape = require('../');
  2. var tap = require('tap');
  3. tap.test('only twice error', function (assert) {
  4. var test = tape.createHarness({ exit : false });
  5. test.only("first only", function (t) {
  6. t.end();
  7. });
  8. assert.throws(function () {
  9. test.only('second only', function (t) {
  10. t.end();
  11. });
  12. }, {
  13. name: 'Error',
  14. message: 'there can only be one only test'
  15. });
  16. assert.end();
  17. });