Unverified Commit 3a6eba3d authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

test: use assert.rejects

This verifies that the test actually rejects at this point by using
`assert.rejects` instead of `try / catch`.

PR-URL: https://github.com/nodejs/node/pull/27123


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarYuta Hiroto <hello@hiroppy.me>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 3d6533ea
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