MCPcopy
hub / github.com/strongloop/loopback / expectHttpError

Function expectHttpError

test/replication.rest.test.js:672–680  ·  view source on GitHub ↗
(code, done)

Source from the content-addressed store, hash-verified

670 }
671
672 function expectHttpError(code, done) {
673 return function(err) {
674 if (!err) return done(new Error('The method should have failed.'));
675
676 expect(err).to.have.property('statusCode', code);
677
678 done();
679 };
680 }
681
682 function replicateServerToLocal(next) {
683 ServerUser.replicate(LocalUser, function(err, conflicts) {

Callers 1

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…