// Copyright IBM Corp. 2013,2016. All Rights Reserved. // Node module: loopback-datasource-juggler // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT module.exports = require('should'); /* if (!process.env.TRAVIS) { if (typeof __cov === 'undefined') { process.on('exit', function () { require('semicov').report(); }); } require('semicov').init('lib'); } */ var ModelBuilder = require('../').ModelBuilder; var Schema = require('../').Schema; if (!('getSchema' in global)) { global.getSchema = function(connector, settings) { return new Schema(connector || 'memory', settings); }; } if (!('getModelBuilder' in global)) { global.getModelBuilder = function() { return new ModelBuilder(); }; } if (!('Promise' in global)) { global.Promise = require('bluebird'); }