Run replication tests in the browser too
This commit is contained in:
parent
8f41ac4b35
commit
59ae90bb97
|
@ -3,7 +3,11 @@ var loopback = require('../');
|
||||||
|
|
||||||
// create a unique Checkpoint model
|
// create a unique Checkpoint model
|
||||||
var Checkpoint = loopback.Checkpoint.extend('TestCheckpoint');
|
var Checkpoint = loopback.Checkpoint.extend('TestCheckpoint');
|
||||||
Checkpoint.attachTo(loopback.memory());
|
|
||||||
|
var memory = loopback.createDataSource({
|
||||||
|
connector: loopback.Memory
|
||||||
|
});
|
||||||
|
Checkpoint.attachTo(memory);
|
||||||
|
|
||||||
describe('Checkpoint', function() {
|
describe('Checkpoint', function() {
|
||||||
describe('current()', function() {
|
describe('current()', function() {
|
||||||
|
|
|
@ -20,6 +20,9 @@ module.exports = function(config) {
|
||||||
'test/model.test.js',
|
'test/model.test.js',
|
||||||
'test/model.application.test.js',
|
'test/model.application.test.js',
|
||||||
'test/geo-point.test.js',
|
'test/geo-point.test.js',
|
||||||
|
'test/replication.test.js',
|
||||||
|
'test/change.test.js',
|
||||||
|
'test/checkpoint.test.js',
|
||||||
'test/app.test.js'
|
'test/app.test.js'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
var async = require('async');
|
var async = require('async');
|
||||||
var loopback = require('../');
|
var loopback = require('../');
|
||||||
var ACL = loopback.ACL;
|
|
||||||
var Change = loopback.Change;
|
var Change = loopback.Change;
|
||||||
var defineModelTestsWithDataSource = require('./util/model-tests');
|
var defineModelTestsWithDataSource = require('./util/model-tests');
|
||||||
var PersistedModel = loopback.PersistedModel;
|
var PersistedModel = loopback.PersistedModel;
|
||||||
|
|
Loading…
Reference in New Issue