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

Function assertErrorProperties

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

Source from the content-addressed store, hash-verified

8509
8510
8511 function assertErrorProperties(user) {
8512 assert.equal(user.err.message, 'I am a bad error');
8513 assert.ok(user.err.stack);
8514 assert.deepEqual(user.err.metadata, { reasons: ['Cloudflare is down', 'DNS'] });
8515 }
8516
8517 });
8518

Callers 1

model.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected