From f5e94935a66939a69bde5cea208a6fc0f35ca4ec Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 14 Mar 2019 12:40:09 +0100 Subject: [PATCH] fixup! assert: validate required arguments --- test/parallel/test-assert.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js index 901a06a75f378e..5bca70a01db2f0 100644 --- a/test/parallel/test-assert.js +++ b/test/parallel/test-assert.js @@ -1187,3 +1187,13 @@ assert.throws( () => a.notDeepStrictEqual(undefined), { code: 'ERR_MISSING_ARGS' } ); + +assert.throws( + () => a.strictEqual(), + { code: 'ERR_MISSING_ARGS' } +); + +assert.throws( + () => a.deepStrictEqual(), + { code: 'ERR_MISSING_ARGS' } +);