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

Function assertErrorProperties

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

Source from the content-addressed store, hash-verified

8701
8702
8703 function assertErrorProperties(user) {
8704 assert.equal(user.err.message, 'I am a bad error');
8705 assert.ok(user.err.stack);
8706 assert.deepEqual(user.err.metadata, { reasons: ['Cloudflare is down', 'DNS'] });
8707 }
8708
8709 });
8710

Callers 1

model.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected