Skip to content

Commit 68ce205

Browse files
authored
Merge pull request #1335 from stof/fix_eslint_warning
Fix ESLint warning
2 parents ae05af4 + 2f8d93d commit 68ce205

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "yarn run test:main && yarn run test:persistent-cache",
88
"test:main": "mocha --reporter spec test --recursive --ignore test/persistent-cache/*",
99
"test:persistent-cache": "node run-persistent-tests",
10-
"lint": "eslint lib test index.js .eslintrc.js --report-unused-disable-directives",
10+
"lint": "eslint lib test index.js .eslintrc.js --report-unused-disable-directives --max-warnings=0",
1111
"travis:lint": "yarn run lint"
1212
},
1313
"bin": {

test/functional.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,20 +1248,17 @@ module.exports = {
12481248
);
12491249

12501250
// Test that the generated scripts work fine
1251-
await new Promise(resolve => {
1252-
testSetup.requestTestPage(
1253-
browser,
1254-
path.join(config.getContext(), 'www'),
1255-
[
1256-
'build/runtime.js',
1257-
`build/${scriptName}`,
1258-
],
1259-
async({ page }) => {
1260-
expect(await page.evaluate(() => document.body.textContent)).to.contains('[1,2,3,4]');
1261-
resolve();
1262-
}
1263-
);
1264-
});
1251+
await testSetup.requestTestPage(
1252+
browser,
1253+
path.join(config.getContext(), 'www'),
1254+
[
1255+
'build/runtime.js',
1256+
`build/${scriptName}`,
1257+
],
1258+
async({ page }) => {
1259+
expect(await page.evaluate(() => document.body.textContent)).to.contains('[1,2,3,4]');
1260+
}
1261+
);
12651262
}
12661263

12671264
done();

0 commit comments

Comments
 (0)