|
|
|
@ -8,7 +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 pkginfo = require('pkginfo')(module); |
|
|
|
|
const { version } = require('../package.json'); |
|
|
|
|
|
|
|
|
|
var args = {} |
|
|
|
|
var app = {} |
|
|
|
@ -34,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 |
|
|
|
@ -1895,7 +1895,7 @@ describe('xmysql : tests', function () {
|
|
|
|
|
return done(err); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
res.body['Xmysql'].should.equals(pkginfo.version); |
|
|
|
|
res.body['Xmysql'].should.equals(version); |
|
|
|
|
res.body['mysql'].should.not.equals(""); |
|
|
|
|
res.body['node'].should.not.equals(""); |
|
|
|
|
|
|
|
|
|