marvinhagemeister / xhr-mocklet

Mock XMLHttpRequests in both the browser and node
5 stars 1 forks source link

clean up types and support error #12

Closed joscha closed 7 years ago

joscha commented 7 years ago

I cleaned up the types, so they can be inferred most of the time and also exported them for easier reuse. I also added support for erroring the response similar to xhr-mock when returning null from a handler.

@marvinhagemeister PTAL

joscha commented 7 years ago

Thanks @marvinhagemeister - would be great if we could release the changes as a patch version :)

marvinhagemeister commented 7 years ago

@joscha you're absolutely right 👍 Made the changelog updates here: https://github.com/marvinhagemeister/xhr-mocklet/pull/14