Browse Source

Removed redundant require of pkginfo, fixed test

pull/48/head
Philip Ebels 6 years ago
parent
commit
0694efdef1
  1. 1
      lib/util/cmd.helper.js
  2. 3
      tests/tests.js

1
lib/util/cmd.helper.js

@ -1,7 +1,6 @@
'use strict';
const program = require('commander');
const colors = require('colors');
const pkginfo = require('pkginfo')(module);
const maxCpus = require('os').cpus().length;

3
tests/tests.js

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

Loading…
Cancel
Save