Skip to content

6.0.0

Compare
Choose a tag to compare
@domenic domenic released this 27 Sep 18:22
· 23 commits to master since this release

In #167, @lddubeau made many improvements to edge cases that have plagued users:

  • Overhauls rejectedWith to behave more like Chai's throws 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.