loopback-datasource-juggler/test/kv-memory.js

25 lines
616 B
JavaScript
Raw Normal View History

2016-08-22 19:55:22 +00:00
'use strict';
var kvMemory = require('../lib/connectors/kv-memory');
var DataSource = require('..').DataSource;
describe('Optimized KeyValue-Memory connector', function() {
var dataSourceFactory = function() {
2016-08-19 17:46:59 +00:00
return new DataSource({connector: kvMemory});
};
require('./kvao.suite')(dataSourceFactory);
});
describe('Unoptimized KeyValue-Memory connector', function() {
var dataSourceFactory = function() {
var ds = new DataSource({connector: kvMemory});
// disable optimized methods
ds.connector.deleteAll = false;
return ds;
};
require('./kvao.suite')(dataSourceFactory);
});