From 598818f57c02320503cbc3257c472e97dce82875 Mon Sep 17 00:00:00 2001 From: Abdirahim Musse <33973272+abmusse@users.noreply.github.com> Date: Mon, 13 Jul 2020 11:42:32 -0500 Subject: [PATCH] test: Fix mocha/no-identical-title eslint issue --- .eslintrc.js | 1 - test/functional/ProgramCallFunctional.js | 6 +++--- test/functional/deprecated/iPgmFunctional.js | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6c58a645..2ce222e7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -29,7 +29,6 @@ module.exports = { // The following rules cause problems for our existing tests, so they are disabled for now: 'mocha/no-skipped-tests': 'off', 'mocha/no-hooks-for-single-case': 'off', - 'mocha/no-identical-title': 'off', }, }, ], diff --git a/test/functional/ProgramCallFunctional.js b/test/functional/ProgramCallFunctional.js index 77f4b7e4..ec0f7962 100644 --- a/test/functional/ProgramCallFunctional.js +++ b/test/functional/ProgramCallFunctional.js @@ -26,7 +26,7 @@ describe('ProgramCall Functional Tests', function () { printConfig(); }); - describe('Test ProgramCall()', function () { + describe('addParam', function () { it('calls QWCRSVAL program checks if it ran successfully', function (done) { const connection = new Connection(config); @@ -81,10 +81,10 @@ describe('ProgramCall Functional Tests', function () { }); }); - describe.skip('Test ProgramCall()', function () { + describe.skip('addReturn', function () { // ZZSRV6 program requires XMLSERVICE built with tests // Skip for now, we need to add before hook to check ZZSRV6 is available - it.skip('Should be successful with addReturn arbitrary attribute specified', function (done) { + it.skip('calls ZZVARY4 and checks the return value', function (done) { const connection = new Connection(config); const program = new ProgramCall('ZZSRV6', { lib: 'XMLSERVICE', func: 'ZZVARY4' }); diff --git a/test/functional/deprecated/iPgmFunctional.js b/test/functional/deprecated/iPgmFunctional.js index 70ece28b..74ab522d 100644 --- a/test/functional/deprecated/iPgmFunctional.js +++ b/test/functional/deprecated/iPgmFunctional.js @@ -47,7 +47,7 @@ describe('iPgm Functional Tests', function () { printConfig(); }); - describe('Test iPgm()', function () { + describe('addParam', function () { it('calls QWCRSVAL program checks if it ran successfully', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -79,10 +79,10 @@ describe('iPgm Functional Tests', function () { }); }); - describe.skip('Test iPgm()', function () { + describe.skip('addReturn', function () { // ZZSRV6 program requires XMLSERVICE built with tests // Skip for now, we need to add before hook to check if ZZSRV6 is available - it.skip('Should be successful with addReturn arbitrary attribute specified using', function (done) { + it.skip('calls ZZVARY4 and checks the return value', function (done) { const connection = new iConn(database, username, password, restOptions); const program = new iPgm('ZZSRV6', { lib: 'XMLSERVICE', func: 'ZZVARY4' });