From 07b9a663e018d58d8a01c50ba56b19273d60c047 Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Tue, 6 Nov 2018 16:52:42 +0000 Subject: [PATCH] console: cover .assert with single argument PR-URL: https://github.com/nodejs/node/pull/24188 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- test/parallel/test-console.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-console.js b/test/parallel/test-console.js index a97e4cf33f8603..0898e964069204 100644 --- a/test/parallel/test-console.js +++ b/test/parallel/test-console.js @@ -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();