Unverified Commit 2a51ae42 authored by szabolcsit's avatar szabolcsit Committed by Ruben Bridgewater
Browse files

test: cover thenables when we check for promises

Added tests that cover the issue when assert.rejects() and
assert.doesNotReject() should not accept Thenables without
a `catch` method or any Thenable function with `catch` and
`then` methods attached.

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


Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
parent d6317d0a
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