6.0.0
In #167, @lddubeau made many improvements to edge cases that have plagued users:
- Overhauls
rejectedWith
to behave more like Chai'sthrows
asserter. - Updates
.fulfilled
,.rejected
, and.rejectedWith
to change the asserter target to the fulfillment value or rejection reason, so that further assertions with.and
act on them. - Updates
.fulfilled
, when successful, to return a promise that fulfills with the fulfillment value - Updates
.rejected
and.rejectedWith
, when successful, to return a promise that fulfills with the rejection reason
Also, Chai as Promised now only supplies a CommonJS-style module. To get AMD or <script>
-compatibility, use a bundler tool like browserify.