Skip to content

Commit

Permalink
Fix disableRanges.test.js that uses callbacks (#4991)
Browse files Browse the repository at this point in the history
This change uses `async/await` a lot to avoid callbacks.

Also, it uses `.rejects` of Jest to test thrown erros, instead of `throw/catch`.
(see <https://jestjs.io/docs/en/tutorial-async.html#rejects>)
  • Loading branch information
ybiquitous committed Nov 17, 2020
1 parent 2db70e9 commit da381ee
Showing 1 changed file with 857 additions and 872 deletions.

0 comments on commit da381ee

Please sign in to comment.