Skip to content
Closed
Changes from all commits
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
console: cover .assert with single argument
  • Loading branch information
mroderick committed Nov 6, 2018
commit 32e806bbc455e94d5691d4189e8e73756a140501
2 changes: 2 additions & 0 deletions test/parallel/test-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ assert.strictEqual(errStrings[errStrings.length - 1],

console.assert(true, 'this should not throw');

console.assert(true);

assert.strictEqual(strings.length, process.stdout.writeTimes);
assert.strictEqual(errStrings.length, process.stderr.writeTimes);
restoreStdout();
Expand Down