2013-04-07 21:53:55 +00:00
|
|
|
module.exports = require('should');
|
|
|
|
|
2013-07-21 05:37:59 +00:00
|
|
|
var Schema = require('loopback-data').Schema;
|
2013-03-27 00:37:13 +00:00
|
|
|
|
2013-07-21 05:37:59 +00:00
|
|
|
global.getSchema = function() {
|
|
|
|
var db = new Schema(require('../'), {
|
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3306,
|
2013-07-21 06:38:40 +00:00
|
|
|
database: 'test',
|
2013-07-21 05:37:59 +00:00
|
|
|
username: 'strongloop',
|
|
|
|
password: 'password'
|
|
|
|
});
|
|
|
|
// db.log = function (a) { console.log(a); };
|
2013-03-27 00:37:13 +00:00
|
|
|
return db;
|
|
|
|
};
|