Unverified Commit aa341d1d authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Beth Griggs
Browse files

test: verify arguments length in common.expectsError

If `common.expectsError` is used as a callback, it will now also
verify that there is only one argument (the expected error).

Backport-PR-URL: https://github.com/nodejs/node/pull/22850
PR-URL: https://github.com/nodejs/node/pull/20311


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarTrivikram Kamat <trivikr.dev@gmail.com>
parent 28a6e59b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment