Run replication tests in the browser too

This commit is contained in:
Miroslav Bajtoš 2015-03-06 14:47:43 +01:00
parent 8f41ac4b35
commit 59ae90bb97
3 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,11 @@ var loopback = require('../');
// create a unique Checkpoint model
var Checkpoint = loopback.Checkpoint.extend('TestCheckpoint');
Checkpoint.attachTo(loopback.memory());
var memory = loopback.createDataSource({
connector: loopback.Memory
});
Checkpoint.attachTo(memory);
describe('Checkpoint', function() {
describe('current()', function() {

View File

@ -20,6 +20,9 @@ module.exports = function(config) {
'test/model.test.js',
'test/model.application.test.js',
'test/geo-point.test.js',
'test/replication.test.js',
'test/change.test.js',
'test/checkpoint.test.js',
'test/app.test.js'
],

View File

@ -1,6 +1,5 @@
var async = require('async');
var loopback = require('../');
var ACL = loopback.ACL;
var Change = loopback.Change;
var defineModelTestsWithDataSource = require('./util/model-tests');
var PersistedModel = loopback.PersistedModel;