From 7be93a2fc8fdc5fc22825ac5ce4c05cb08a44772 Mon Sep 17 00:00:00 2001 From: Philip Ebels Date: Sat, 1 Sep 2018 12:52:32 +0200 Subject: [PATCH] Fixed test --- tests/tests.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tests.js b/tests/tests.js index 987dfb9f5a..e105fb9c7e 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -8,6 +8,7 @@ var whereClause = require('../lib/util/whereClause.helper.js') var should = require('should'); var request = require('supertest') const cmdargs = require('../lib/util/cmd.helper.js'); +const { version } = require('../package.json'); var args = {} var app = {} @@ -33,7 +34,7 @@ describe('xmysql : tests', function () { mysqlPool = mysql.createPool(args) app = express() - //app.use(morgan('tiny')) + app.set('version', version) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: true @@ -1894,7 +1895,7 @@ describe('xmysql : tests', function () { return done(err); } - res.body['Xmysql'].should.not.equals(""); + res.body['Xmysql'].should.equals(version); res.body['mysql'].should.not.equals(""); res.body['node'].should.not.equals("");