Unverified Commit 44b12c15 authored by Refael Ackermann's avatar Refael Ackermann Committed by Michaël Zasso
Browse files

test: fix common.expectsError

The function should strictly test for the error class and only accept
the correct one. Any other error class should fail.

Backport-PR-URL: https://github.com/nodejs/node/pull/19579
PR-URL: https://github.com/nodejs/node/pull/13686
Fixes: https://github.com/nodejs/node/issues/13682


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
parent cc68bc27
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