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

Function givenReplicatedInstance

test/replication.test.js:1196–1206  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

1194 });
1195
1196 function givenReplicatedInstance(cb) {
1197 SourceModel.create({name: 'a-name'}, function(err, inst) {
1198 if (err) return cb(err);
1199
1200 SourceModel.checkpoint(function(err) {
1201 if (err) return cb(err);
1202
1203 cb(null, inst);
1204 });
1205 });
1206 }
1207
1208 function assertChangeRecordedForId(id, cb) {
1209 SourceModel.getChangeModel().getCheckpointModel()

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…