diff --git a/.eslintrc.js b/.eslintrc.js index 3f09f8ad3..13de96e90 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -98,7 +98,6 @@ module.exports = { 'node/no-path-concat': 'off', 'dot-notation': 'off', 'mocha/max-top-level-suites': 'off', - 'node/no-callback-literal': 'off', }, overrides: [{ diff --git a/test/e2e/helpers.js b/test/e2e/helpers.js index c0aa19f74..26047550d 100644 --- a/test/e2e/helpers.js +++ b/test/e2e/helpers.js @@ -10,7 +10,7 @@ const largeDelayMs = regularDelayMs * 2 const dappPort = 8080 -async function withFixtures (options, callback) { +async function withFixtures (options, testSuite) { const { dapp, fixtures, ganacheOptions, driverOptions, title } = options const fixtureServer = new FixtureServer() const ganacheServer = new Ganache() @@ -33,8 +33,7 @@ async function withFixtures (options, callback) { const { driver } = await buildWebDriver(driverOptions) webDriver = driver - // eslint-disable-next-line node/callback-return,node/no-callback-literal - await callback({ + await testSuite({ driver, })