diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index e5a7d1aaaa90d8..695d890f4c5f6f 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -862,6 +862,14 @@ common.expectsError( }); { + + assert.throws(() => { + assert.ok((() => Boolean('' === false))()); + }, { + message: 'The expression evaluated to a falsy value:\n\n' + + " assert.ok((() => Boolean('\\u0001' === false))())\n" + }); + const errFn = () => { const err = new TypeError('Wrong value'); err.code = 404;