From 0694efdef1634251d07874cca653d19cea110022 Mon Sep 17 00:00:00 2001 From: Philip Ebels Date: Fri, 31 Aug 2018 20:11:23 +0200 Subject: [PATCH] Removed redundant require of pkginfo, fixed test --- lib/util/cmd.helper.js | 1 - tests/tests.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/util/cmd.helper.js b/lib/util/cmd.helper.js index b5dc1f41ab..0aa65ed144 100644 --- a/lib/util/cmd.helper.js +++ b/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; diff --git a/tests/tests.js b/tests/tests.js index 7f5cf1137b..987dfb9f5a 100644 --- a/tests/tests.js +++ b/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("");