2013-04-06 10:57:12 +00:00
|
|
|
module.exports = require('should');
|
2013-03-24 21:25:10 +00:00
|
|
|
|
2013-08-15 21:10:13 +00:00
|
|
|
/*
|
2014-01-24 17:09:53 +00:00
|
|
|
if (!process.env.TRAVIS) {
|
|
|
|
if (typeof __cov === 'undefined') {
|
|
|
|
process.on('exit', function () {
|
|
|
|
require('semicov').report();
|
|
|
|
});
|
|
|
|
}
|
2013-03-24 21:25:10 +00:00
|
|
|
|
2014-01-24 17:09:53 +00:00
|
|
|
require('semicov').init('lib');
|
|
|
|
}
|
|
|
|
*/
|
2013-03-26 00:39:47 +00:00
|
|
|
|
2014-08-30 08:53:10 +00:00
|
|
|
var ModelBuilder = require('../').ModelBuilder;
|
2013-03-26 00:39:47 +00:00
|
|
|
var Schema = require('../').Schema;
|
|
|
|
|
|
|
|
if (!('getSchema' in global)) {
|
2014-08-30 08:53:10 +00:00
|
|
|
global.getSchema = function (connector, settings) {
|
|
|
|
return new Schema(connector || 'memory', settings);
|
2014-01-24 17:09:53 +00:00
|
|
|
};
|
2013-03-26 00:39:47 +00:00
|
|
|
}
|
2014-08-30 08:53:10 +00:00
|
|
|
|
|
|
|
if (!('getModelBuilder' in global)) {
|
|
|
|
global.getModelBuilder = function () {
|
|
|
|
return new ModelBuilder();
|
|
|
|
};
|
2015-02-17 16:41:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!('Promise' in global)) {
|
|
|
|
global.Promise = require('bluebird');
|
|
|
|
}
|