2019-06-28 14:54:45 +00:00
|
|
|
// Copyright IBM Corp. 2019. All Rights Reserved.
|
|
|
|
// Node module: loopback-connector-mysql
|
2020-02-08 22:23:33 +00:00
|
|
|
// This file is licensed under the MIT License.
|
|
|
|
// License text available at https://opensource.org/licenses/MIT
|
2019-06-28 14:54:45 +00:00
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const semver = require('semver');
|
|
|
|
const should = require('should');
|
|
|
|
const juggler = require('loopback-datasource-juggler');
|
|
|
|
const name = require('./package.json').name;
|
|
|
|
|
|
|
|
require('../../test/init');
|
|
|
|
|
|
|
|
describe(name, function() {
|
|
|
|
before(function() {
|
|
|
|
return global.resetDataSourceClass(juggler.DataSource);
|
|
|
|
});
|
|
|
|
|
|
|
|
after(function() {
|
|
|
|
return global.resetDataSourceClass();
|
|
|
|
});
|
|
|
|
|
|
|
|
require('loopback-datasource-juggler/test/common.batch.js');
|
|
|
|
require('loopback-datasource-juggler/test/include.test.js');
|
|
|
|
|
|
|
|
// === Operation hooks ==== //
|
|
|
|
|
|
|
|
const suite = require('loopback-datasource-juggler/test/persistence-hooks.suite.js');
|
|
|
|
const customConfig = Object.assign({}, global.config);
|
|
|
|
suite(global.getDataSource(customConfig, juggler.DataSource), should, {replaceOrCreateReportsNewInstance: false});
|
|
|
|
});
|