diff --git a/package.json b/package.json index 6af8fd25..ac1ee88a 100755 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "yarn run test:main && yarn run test:persistent-cache", "test:main": "mocha --reporter spec test --recursive --ignore test/persistent-cache/*", "test:persistent-cache": "node run-persistent-tests", - "lint": "eslint lib test index.js .eslintrc.js --report-unused-disable-directives", + "lint": "eslint lib test index.js .eslintrc.js --report-unused-disable-directives --max-warnings=0", "travis:lint": "yarn run lint" }, "bin": { diff --git a/test/functional.js b/test/functional.js index a8933377..a3cad3a2 100644 --- a/test/functional.js +++ b/test/functional.js @@ -1248,20 +1248,17 @@ module.exports = { ); // Test that the generated scripts work fine - await new Promise(resolve => { - testSetup.requestTestPage( - browser, - path.join(config.getContext(), 'www'), - [ - 'build/runtime.js', - `build/${scriptName}`, - ], - async({ page }) => { - expect(await page.evaluate(() => document.body.textContent)).to.contains('[1,2,3,4]'); - resolve(); - } - ); - }); + await testSetup.requestTestPage( + browser, + path.join(config.getContext(), 'www'), + [ + 'build/runtime.js', + `build/${scriptName}`, + ], + async({ page }) => { + expect(await page.evaluate(() => document.body.textContent)).to.contains('[1,2,3,4]'); + } + ); } done();