Skip to content

lengthOf doesn't work with nested arrays #61

@guilhermeagostinelli

Description

@guilhermeagostinelli
var arr = [[], [], []];
arr[0].should.have.lengthOf(0); // test passes as expected
arr.should.all.have.property('length', 0); // test passes as expected
arr.should.all.have.lengthOf(0); // test fails saying it got a length of 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions