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

Function mockTargetModelRectify

test/replication.test.js:254–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 }
253
254 function mockTargetModelRectify() {
255 const calls = [];
256
257 TargetModel.rectifyChange = function(id, cb) {
258 calls.push('rectifyChange');
259 process.nextTick(cb);
260 };
261
262 TargetModel.rectifyAllChanges = function(cb) {
263 calls.push('rectifyAllChanges');
264 process.nextTick(cb);
265 };
266
267 return calls;
268 }
269 });
270
271 describe('Model.changes(since, filter, callback)', function() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…