Skip to content

Loading dirty-chai before chai-jquery breaks empty() #11

@justin-lau

Description

@justin-lau

The readme stated that dirty-chai should be loaded before any other plugins, but I found that if I load dirty-chai before chai-jquery, a should.be.empty() throws a TypeError: empty is not a function.

However, if I load chai-jquery before dirty-chai, the said problem is gone, and what's more, the property assertions in chai-jquery actually convert to method assertions.

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