Skip to content

LFDM/chai-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Chai plugin to play nice with linters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published