Permalink
Browse files

console: cover .assert with single argument

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 6, 2018
1 parent 882962a commit e3d05a61215b2958cc1951759e08e816b35f5027
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/parallel/test-console.js
@@ -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();

0 comments on commit e3d05a6

Please sign in to comment.