power-assert
power-assert copied to clipboard
assert.throws does not accept object
as of Node.js v9+, the built-in assert.throws() accepts an object as the "error" parameter. When passed an object, it checks the properties of the error against the properties on the passed object.
Looks like power-assert does not currently support this. Would be great if it could be added!
is this something you'd accept a PR to add?
Thanks! I'll support assert.throws more in power-assert v2.