Skip to content

Commit 07b9a66

Browse files
mroderickMylesBorins
authored andcommitted
console: cover .assert with single argument
PR-URL: #24188 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent cf20917 commit 07b9a66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-console.js

+2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ assert.strictEqual(errStrings[errStrings.length - 1],
168168

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

171+
console.assert(true);
172+
171173
assert.strictEqual(strings.length, process.stdout.writeTimes);
172174
assert.strictEqual(errStrings.length, process.stderr.writeTimes);
173175
restoreStdout();

0 commit comments

Comments
 (0)