Skip to content

Proposal: .either.some.or.someElse #620

@qfox

Description

@qfox

Would be nice to have .either as a delimiter and .or as finalizer of assertion chain.

Something like:

.to.be.equal('five').either.an('object').or.a('number')

There could be just one .or. And as many as need .eithers.

What you say?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions