Add assert-methods.js module
- This is used to patch in helper methods into the global assert object such as `rejects()` for testing.
- The new rejects method gives tests the ability to easily test error results in async methods that return a promise.
- Replace all async try/catch tests with assert.rejects
Signed-off-by: Kyle Keating <kkeating@hypothes.is>
Showing
Please register or sign in to comment