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 Trott committed Nov 11, 2018
1 parent 882962a commit e3d05a6
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 @@ -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

0 comments on commit e3d05a6

Please sign in to comment.