loopback-connector-mysql/deps/juggler-v4/test.js

33 lines
1.0 KiB
JavaScript

// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: loopback-connector-mysql
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'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});
});