MCPcopy Create free account
hub / github.com/IBM/couchbackup / restoreHttpError

Function restoreHttpError

test/fatalerrors.js:71–74  ·  view source on GitHub ↗
(opts, errorName, errorCode)

Source from the content-addressed store, hash-verified

69}
70
71async function restoreHttpError(opts, errorName, errorCode) {
72 const q = u.p(opts, { expectedRestoreError: { name: errorName, code: errorCode } });
73 return testPromiseWithAssertNock(u.testRestoreFromFile(q, './test/fixtures/animaldb_expected.json', 'fakenockdb'));
74}
75
76[{ useApi: true }, { useApi: false }].forEach(function(params) {
77 describe(u.scenario('#unit Fatal errors', params), function() {

Callers 1

fatalerrors.jsFile · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…