MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / shouldReject

Function shouldReject

test/36.database.backup.js:17–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 const fulfillsWith = (value, p) => p.then(v => void expect(v).to.deep.equal(value));
16 const rejectsWith = (type, p) => {
17 const shouldReject = () => { throw new Error('Promise should have been rejected') };
18 const reasonIs = (reason) => { if (!(reason instanceof type)) throw reason; }
19 return p.then(shouldReject, reasonIs);
20 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected