(exception, fn)
| 562 | describe('should propagate exceptions', function () { |
| 563 | const exceptions = [new TypeError('foobar'), new Error('baz'), { yup: 'ok' }, 'foobarbazqux', '', null, 123.4]; |
| 564 | const expectError = (exception, fn) => { |
| 565 | try { fn(); } catch (ex) { |
| 566 | expect(ex).to.equal(exception); |
| 567 | return; |
| 568 | } |
| 569 | throw new TypeError('Expected table to throw an exception'); |
| 570 | }; |
| 571 | |
| 572 | specify('thrown in the factory function', function () { |
| 573 | exceptions.forEach((exception, index) => { |
no test coverage detected