Skip to content

include and contains? #25

@nathanwaldman

Description

@nathanwaldman

I am attempting to assert that any element of an array of strings contains a particular substring.

The assertion ['first', 'second'].should.include.an.item.that.contains 'con' fails with expected 'second' to include 'con'.

Is this supposed to work? Without looking at the internals, I could see how using include in the sense of array elements, and contain in the sense of a substring in one assertion might be confusing.

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