Skip to content

to.have.length() for non-zero length #58

@ELLIOTTCABLE

Description

@ELLIOTTCABLE

I would expect length() to be able to check for any non-zero-length. The cleanest API for this, to me, would be passing no argument:

expect(filled_array).to.have.length()

Also, more powerfully, it'd be nice to be able to chain the numeric operators onto this:

expect(filled_array).to.have.length.greaterThan(2)

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