Skip to content

Commit

Permalink
Add missing space after colon
Browse files Browse the repository at this point in the history
Instead of:

The following leaks were detected:Symbol(undici.globalDispatcher.1)

...use this:

The following leaks were detected: Symbol(undici.globalDispatcher.1)
  • Loading branch information
Trott authored and cjihrig committed May 20, 2022
1 parent 542288e commit 0542146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/reporters/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ internals.Reporter.prototype.end = function (notebook) {

if (notebook.leaks) {
if (notebook.leaks.length) {
output += red('The following leaks were detected:' + notebook.leaks.join(', ')) + '\n';
output += red('The following leaks were detected: ' + notebook.leaks.join(', ')) + '\n';
}
else {
output += 'Leaks: ' + green('No issues') + '\n';
Expand Down
4 changes: 2 additions & 2 deletions test/reporters.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ describe('Reporter', () => {
const result = output.replace(/at.*\.js\:\d+\:\d+\)?/g, 'at <trace>');
expect(result).to.contain('Expected true to equal specified value');
expect(result).to.contain('1 of 1 tests failed');
expect(result).to.contain('The following leaks were detected:x1');
expect(result).to.contain('The following leaks were detected: x1');
});

it('generates a report with multi-line diff', async () => {
Expand All @@ -477,7 +477,7 @@ describe('Reporter', () => {

delete global.x1;
expect(code).to.equal(1);
expect(output).to.contain('The following leaks were detected:x1');
expect(output).to.contain('The following leaks were detected: x1');
expect(output).to.contain('Expected');
});

Expand Down

0 comments on commit 0542146

Please sign in to comment.