()
| 658 | throw new Error('code on a non-MongoError should not be inspected'); |
| 659 | } |
| 660 | hasErrorLabel() { |
| 661 | throw new Error('hasErrorLabel should not be checked on a non-MongoError'); |
| 662 | } |
| 663 | })(); |
| 664 | // Expectations that prove this syntax provides what is desired for the test |
| 665 | expect(errorWithCode).to.be.instanceOf(Error); |
no outgoing calls
no test coverage detected