diff options
Diffstat (limited to 'test/parallel/test-assert.js')
-rw-r--r-- | test/parallel/test-assert.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index 72ba7d2443..bdbde655d7 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -348,15 +348,15 @@ try { } { - // Verify that throws() and doesNotThrow() throw on non-function block. - const testBlockTypeError = (method, block) => { + // Verify that throws() and doesNotThrow() throw on non-functions. + const testBlockTypeError = (method, fn) => { common.expectsError( - () => method(block), + () => method(fn), { code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: 'The "block" argument must be of type Function. Received ' + - `type ${typeof block}` + message: 'The "fn" argument must be of type Function. Received ' + + `type ${typeof fn}` } ); }; |