(exception, fn)
| 474 | describe('should propagate exceptions', function () { |
| 475 | const exceptions = [new TypeError('foobar'), new Error('baz'), { yup: 'ok' }, 'foobarbazqux', '', null, 123.4]; |
| 476 | const expectError = (exception, fn) => { |
| 477 | try { fn(); } catch (ex) { |
| 478 | expect(ex).to.equal(exception); |
| 479 | return; |
| 480 | } |
| 481 | throw new TypeError('Expected aggregate to throw an exception'); |
| 482 | }; |
| 483 | |
| 484 | specify('thrown in the start() function', function () { |
| 485 | exceptions.forEach((exception, index) => { |
no test coverage detected
searching dependent graphs…