This release adds some new assertions and fixes some quite important, long standing bugs. Here are the cliff notes:
- Bugfix: Property assertions that fail now show a stack trace!
- Bugfix: If you've used the
frozen
,sealed
orextensible
assertions to test primitives (e.g.expect(1).to.be.frozen
), you may have noticed that in older browsers (ES5) these fail, and in new ones (ES6) they pass. They have now been fixed to consistently pass - The
assert
interface has been given the following new methods, to align better with other interfaces:,assert.isAtMost
,assert.isAtLeast
,assert.isNotTrue
,assert.isNotFalse
.
Community Contributions
Code Features & Fixes
- #494 Add
assert.isNotTrue
andassert.isNotFalse
.
By @cezarykluczynski - #496
frozen
/extensible
/sealed
assertions behave the same in ES6 and ES5 environments.
By @astorije - #499 Simplify the
.empty
assertion.
By @Daveloper87 - #500 Add
assert.isAtMost
andassert.isAtLeast
.
By @wraithan - #512 fixed expect('').to.contain('') so it passes. By @dereke
- #514 Fix stack trace tracking for property assertions.
By @kpdecker
Documentation fixes
- #495 Correct misplaced docs for assertions (
isBelow
,isAbove
,isTrue
).
By @cezarykluczynski