• Kyle Keating's avatar
    Add assert-methods.js module · ec3d81f3
    Kyle Keating authored
    - 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: 's avatarKyle Keating <kkeating@hypothes.is>
    ec3d81f3
fetch-config-test.js 10.5 KB