diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index fd2d8721299ac9..335f5f56800909 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -835,6 +835,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;