Skip to content

Allow more than one assertion string? #225

Open
@papandreou

Description

@papandreou

@gertsonderby asked about whether Unexpected 10 would help with making the assertions more grammatically correct by allowing "filler words" in the argument list, and I thought about that for a bit. Early on we ruled out the possiblity of supporting multiple subjects, because we need the assertion string to be passed as the second parameter. But maybe that doesn't rule out the possiblity of allowing some of the other parameters to be assertion strings as well, possiblity even including flags?

expect.addAssertion('<number> to be in range from <number> up to [and including] <number>', function (expect, subject, lower, upper) { ... });

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