Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
step2yeung committed Oct 26, 2021
1 parent 4eec476 commit 7b1df6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/commands/exam.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ module.exports = TestCommand.extend({
if (!failed && commands.get('loadBalance')) {
const browserId = getBrowserId(this.launcher);
log.info(
`Browser ${browserId} exiting. [ # of modules in current module queue ${
testemEvents.stateManager.getTestModuleQueue().length
} ]`
`Browser ${browserId} exiting. [ # of modules in current module queue ${
testemEvents.stateManager.getTestModuleQueue().length
} ]`
);
// if getBrowserId cannot get the browserId
// but the test queue is not empty, report the number of test modules left in the queue
Expand All @@ -306,7 +306,8 @@ module.exports = TestCommand.extend({
ui.writeLine(
`[ # of modules in current module queue ${
testemEvents.stateManager.getTestModuleQueue().length
} ]`);
} ]`
);
} else {
throw new Error('testModuleQueue is not set.');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/test-page-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function getBrowserId(launcher) {
if (Array.isArray(browserIdMatch) !== null && browserIdMatch !== null) {
return browserIdMatch[1];
}
} catch(err) {
} catch (err) {
const errMsg = `${err.message} \n${
err.stack
} \nLauncher Settings: ${JSON.stringify(launcher.settings, null, 2)}`;
Expand Down

0 comments on commit 7b1df6f

Please sign in to comment.