MCPcopy Create free account
hub / github.com/Automattic/mongoose / assertErrorProperties

Function assertErrorProperties

test/model.test.js:8531–8535  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

8529
8530
8531 function assertErrorProperties(user) {
8532 assert.equal(user.err.message, 'I am a bad error');
8533 assert.ok(user.err.stack);
8534 assert.deepEqual(user.err.metadata, { reasons: ['Cloudflare is down', 'DNS'] });
8535 }
8536
8537 });
8538

Callers 1

model.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected