Skip to content

assert.throws does not accept object #111

@chadxz

Description

@chadxz

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    power-assert-v2features and bug fixes in power-assert v2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions