Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Finish rebase + update console label
  • Loading branch information
domfarolino committed Jul 4, 2018
commit 033f41e7fb40e95becca3c040ca6593d450a3936
10 changes: 5 additions & 5 deletions test/parallel/test-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ common.expectWarning(
'Warning',
[
['Count for \'noLabel\' does not exist', common.noWarnCode],
['No such label \'nolabel\' for console.timeLog()', common.noWarnCode],
['No such label \'nolabel\' for console.timeEnd()', common.noWarnCode],
['No such label \'noLabel\' for console.timeLog()', common.noWarnCode],
['No such label \'noLabel\' for console.timeEnd()', common.noWarnCode],
['Label \'test\' already exists for console.time()', common.noWarnCode]
]
);

console.countReset('noLabel');
console.timeLog('nolabel');
console.timeEnd('nolabel');
console.timeLog('noLabel');
console.timeEnd('noLabel');

console.time('label');
console.timeEnd('label');
Expand Down Expand Up @@ -247,6 +247,6 @@ common.hijackStderr(common.mustCall(function(data) {

// stderr.write will catch sync error, so use `process.nextTick` here
process.nextTick(function() {
assert.strictEqual(data.includes('nolabel'), true);
assert.strictEqual(data.includes('noLabel'), true);
});
}));