Skip to content

Commit

Permalink
console: cover .assert with single argument
Browse files Browse the repository at this point in the history
PR-URL: #24188
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mroderick authored and MylesBorins committed Dec 26, 2018
1 parent cf20917 commit 07b9a66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-console.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,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

0 comments on commit 07b9a66

Please sign in to comment.