- Treat other 20x statuses (besides 200) as success #38
- Allow non object data to be handled in the request body via
send()
#36
- can now handle parallel requests #32
- Fix error parameter returned by mocked superagent to match the documented superagent error handling #34
- Support capturing query params #35
- mockable status codes added
- fixed issue with sending multiple requests to single router #28
- added
clearRoute()
to remove routes by url and http-method #19 - added
unmock
method to disable mocker #19 - fixed missed calling context #19
- added ability to set custom timeout for requests #8
- added a method to clear all registered handlers #10
- errors in mocks now throws into callbacks #12
- added support for headers and send method #11
- tests improved
- fix: unmocked routes now works properly
- fix: avoid patching when superagent is patched already
- add history.md
- fix race conditions that messed up responses
- update kewords and readme
- make mocker async
- fix error with route hadn't mocked
- fix matching
- fix docs