Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kevo1ution committed Oct 25, 2022
1 parent ae14684 commit cc597fe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/reporters/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ export default class Reporter {
this.lineWriter.writeLine(`${testsInFile.size} tests were pending in ${this.relativeFile(file)}\n`);
const testTitleToLogs = evt.pendingTestsLogReference.get(file) ?? new Map();
for (const title of testsInFile) {
const logs = testTitleToLogs.get(title) ?? []
const logs = testTitleToLogs.get(title) ?? [];
this.lineWriter.writeLine(`${figures.circleDotted} ${this.prefixTitle(file, title)}`);
this.writeLogs({logs})
this.writeLogs({logs});
}

this.lineWriter.writeLine('');
Expand Down
4 changes: 2 additions & 2 deletions lib/run-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class RunStatus extends Emittery {
this.removePendingTest(event);
break;
case 'test-register-log-reference':
this.addLogReference(event)
this.addLogReference(event);
break;
case 'timeout':
stats.timeouts++;
Expand Down Expand Up @@ -211,7 +211,7 @@ export default class RunStatus extends Emittery {

addLogReference(event) {
if (this.pendingTestsLogReference.has(event.testFile)) {
this.pendingTestsLogReference.get(event.testFile).set(event.title, event.logs)
this.pendingTestsLogReference.get(event.testFile).set(event.title, event.logs);
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ export default class Runner extends Emittery {
this.emit('stateChange', {
type: 'test-register-log-reference',
title: task.title,
logs: test.logs
})
logs: test.logs,
});

const result = await this.runSingle(test);
testOk = result.passed;
Expand Down
2 changes: 1 addition & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export default class Test {
}));
})
.then(() => {
resolve(this.finish())
resolve(this.finish());
});
});
}
Expand Down

0 comments on commit cc597fe

Please sign in to comment.