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

Function verifySourceWasReplicated

test/replication.test.js:1592–1605  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

1590 }
1591
1592 function verifySourceWasReplicated(target) {
1593 if (!target) target = TargetModel;
1594
1595 return function verify(next) {
1596 target.findById(sourceInstanceId, function(err, targetInstance) {
1597 if (err) return next(err);
1598
1599 expect(targetInstance && targetInstance.toObject())
1600 .to.eql(sourceInstance && sourceInstance.toObject());
1601
1602 next();
1603 });
1604 };
1605 }
1606 });
1607
1608 describe('ensure options object is set on context during bulkUpdate', function() {

Callers 1

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…