Back to Qunit

QUnit 2.5.0 Released: Add assert.rejects

docs/_posts/2018-01-09-qunit-2-5-0.md

2.25.01.1 KB
Original Source

Includes a bunch of small fixes, better error handling, perf improvements, and the new assert.rejects API for verifying rejected promises.

Thanks to all our contributors!

Changelog

Added

  • Assert: New assert.rejects() method. (Robert Jackson) #1238
  • CLI: Fail test if there are unhandled rejections, similar to uncaught errors. (Robert Jackson) #1241
  • HTML Reporter: Fail test if there are unhandled rejections, similar to uncaught errors. (Robert Jackson) #1241

Changed

  • Assert: The assert.verifySteps() method now resets the steps buffer, making it easier to use multiple times in a single test. #1233

Fixed

  • Core: Remove artificial delays from internal setTimeout processing code. #1246

See also