MCPcopy
hub / github.com/mongodb/node-mongodb-native / hasErrorLabel

Method hasErrorLabel

test/unit/error.test.ts:660–662  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Calls

no outgoing calls

Tested by

no test coverage detected