Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 519 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 519 Bytes

Allows to bypass chai's property assertions, which make linters unhappy (confer eslint/eslint#2102).

Provides the following functions, which is the appropriate property getters under the hood:

  • beOk
  • beTrue
  • beFalse
  • beNull
  • beUndefined
  • beEmpty
  • beArguments
  • toExist

Use them like this:

expect(object).toExist();
expect(array).to.beEmpty();

Sinon assertions are also supported, for example:

expect(spy).to.have.beenCalled();