|
|
|
@ -23,10 +23,10 @@ describe('xmysql : tests', function () {
|
|
|
|
|
|
|
|
|
|
before(function (done) { |
|
|
|
|
|
|
|
|
|
args['host'] = 'localhost' |
|
|
|
|
args['user'] = 'root' |
|
|
|
|
args['password'] = '' |
|
|
|
|
args['database'] = 'classicmodels' |
|
|
|
|
args['host'] = process.env.DATABASE_HOST || 'localhost' |
|
|
|
|
args['user'] = process.env.DATABASE_USER || 'root' |
|
|
|
|
args['password'] = process.env.DATABASE_PASSWORD || '' |
|
|
|
|
args['database'] = process.env.DATABASE_NAME || 'classicmodels' |
|
|
|
|
args['apiPrefix'] = apiPrefix |
|
|
|
|
|
|
|
|
|
cmdargs.handle(args) |
|
|
|
@ -697,6 +697,7 @@ describe('xmysql : tests', function () {
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(args['host'] === 'localhost') { |
|
|
|
|
it('POST /dynamic should PASS', function (done) { |
|
|
|
|
|
|
|
|
|
var obj = {}; |
|
|
|
@ -773,6 +774,7 @@ describe('xmysql : tests', function () {
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('PATCH /api/productlines/Hyperloop should PASS', function (done) { |
|
|
|
|