0.1.1 • Published 9 years ago

chai-lint v0.1.1

Weekly downloads
487
License
MIT
Repository
github
Last release
9 years ago

Allows to bypass chai's property assertions, which make linters unhappy (confer https://github.com/eslint/eslint/issues/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();
0.1.1

9 years ago

0.1.0

9 years ago