()
| 15 | const fulfillsWith = (value, p) => p.then(v => void expect(v).to.deep.equal(value)); |
| 16 | const rejectsWith = (type, p) => { |
| 17 | const shouldReject = () => { throw new Error('Promise should have been rejected') }; |
| 18 | const reasonIs = (reason) => { if (!(reason instanceof type)) throw reason; } |
| 19 | return p.then(shouldReject, reasonIs); |
| 20 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected