loopback/test
Miroslav Bajtoš 628e3a30ca Return new checkpoints in callback of replicate()
Extend `PersistedModel.replicate` to pass the newly created checkpoints
as the third callback argument.

The typical usage of these values is to pass them as the `since`
argument of the next `replicate()` call.

    global.since = -1;

    function sync(cb) {
      LocalModel.replicate(
        since,
        RemoteModel,
        function(err, conflicts, cps)
          if (err) return cb(err);
          if (!conflicts.length) {
            since = cps;
            return cb();
          }
          // resolve conflicts and try again
        });
    }
2015-03-03 19:37:11 +01:00
..
e2e test: use 127.0.0.1 instead of localhost 2015-01-15 22:53:09 -08:00
fixtures Enable remoting for hasOne relations 2015-01-29 22:33:34 -08:00
util test: setup GUID for all models tracking changes 2015-03-02 18:16:18 +01:00
access-control.integration.js fix jscs errors 2014-11-21 03:35:36 +01:00
access-token.test.js Add error code property to known error responses. 2015-01-21 19:04:47 +01:00
acl.test.js Upgrade jscs to ~1.11 via grunt-jscs ^1.5 2015-02-20 15:31:15 +01:00
app.test.js Add a workaround to avoid conflicts with NewRelic 2015-02-25 09:47:18 -08:00
change.test.js test: setup GUID for all models tracking changes 2015-03-02 18:16:18 +01:00
checkpoint.test.js Auto-load and register built-in `Checkpoint` model 2014-10-14 08:58:16 +02:00
data-source.test.js fix jscs errors 2014-11-21 03:35:36 +01:00
email.test.js fix jscs errors 2014-11-21 03:35:36 +01:00
geo-point.test.js Fix Geo test cases 2015-01-06 16:03:37 -08:00
hidden-properties.test.js fix jscs errors 2014-11-21 03:35:36 +01:00
integration.test.js Add test for request pausing during authentication 2014-03-18 08:43:24 +01:00
karma.conf.js karma conf: prevent timeouts on Travis CI 2015-03-03 09:47:49 +01:00
loopback.test.js Fix test broken by recent juggler changes 2015-02-20 13:08:39 +01:00
memory.test.js fix jscs errors 2014-11-21 03:35:36 +01:00
model.application.test.js fix jscs errors 2014-11-21 03:35:36 +01:00
model.test.js test: setup GUID for all models tracking changes 2015-03-02 18:16:18 +01:00
relations.integration.js Upgrade jscs to ~1.11 via grunt-jscs ^1.5 2015-02-20 15:31:15 +01:00
remote-connector.test.js test: setup GUID for all models tracking changes 2015-03-02 18:16:18 +01:00
remoting-coercion.test.js fix jscs errors 2014-11-21 03:35:36 +01:00
remoting.integration.js Upgrade jscs to ~1.11 via grunt-jscs ^1.5 2015-02-20 15:31:15 +01:00
replication.test.js Return new checkpoints in callback of replicate() 2015-03-03 19:37:11 +01:00
rest.middleware.test.js Config option to disable legacy explorer routes 2015-03-02 14:12:18 -05:00
role.test.js fix jscs errors 2014-11-21 03:35:36 +01:00
support.js fix jscs errors 2014-11-21 03:35:36 +01:00
user.test.js Pass options from User.login to createAccessToken 2015-03-02 14:48:08 -08:00