Browse Source

Use tests with database container

pull/55/head
Boris van Katwijk 6 years ago
parent
commit
e853a3401a
  1. 10
      tests/tests.js

10
tests/tests.js

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

Loading…
Cancel
Save