assert.throws does not accept object
chadxz opened this issue · 2 comments
chadxz commented
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!
chadxz commented
is this something you'd accept a PR to add?
twada commented
Thanks! I'll support assert.throws
more in power-assert v2.