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) {
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) {

Loading…
Cancel
Save