Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterYinusa committed Nov 11, 2022
1 parent a76177a commit 9d14fc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ async function withFixtures(options, testSuite) {
} catch (verboseReportError) {
console.error(verboseReportError);
}
if (errors.length === 0 && driver.exceptions.length > 0 && failOnConsoleError) {
if (
errors.length === 0 &&
driver.exceptions.length > 0 &&
failOnConsoleError
) {
const errorMessage = `Errors found in browser console:\n${driver.exceptions.join(
'\n',
)}`;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/webdriver/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class Driver {
}

async checkBrowserForExceptions() {
const exceptions = this.exceptions;
const { exceptions } = this;
const cdpConnection = await this.driver.createCDPConnection('page');
await this.driver.onLogException(cdpConnection, function (exception) {
const { description } = exception.exceptionDetails.exception;
Expand Down

0 comments on commit 9d14fc2

Please sign in to comment.