1.1.0 • Published 11 years ago

chai-extras v1.1.0

Weekly downloads
52
License
-
Repository
github
Last release
11 years ago

chai-extras

These are some additional chai plugins that I've found useful for basic javascript types

To install, just do npm install chai-extras

Assertions

atLeast

Assert that the subject is >= to the value provided

(versionNumber).should.be.atLeast(10.2)
expect(versionNumber).to.be.atLeast(10.2)

atMost

Assert that the subject is <= to the value provided

(paginatedEntries).should.be.atMost(entriesPerPage)
expect(paginatedEntries).to.be.atLeast(entriesPerPage)

Tests

  1. install dependencies with npm install
  2. open test/index.html
1.1.0

11 years ago

1.0.1

12 years ago

1.0.0

12 years ago