Skip to content

assert API design #142

Closed
Closed
@schnittstabil

Description

@schnittstabil

I've just found out that the error argument of .throws is not optional

.throws(function|promise, error, [message])

and that .regexTest is not consistent with the rest of the assertions:

.regexTest(regex, contents, [message])

because of its parameter order (all other assertions follow the basic scheme (actual, expected, message)).

I'm not sure if these were intended…

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions