jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

Add xhrMock.all method for all of get, post, put, patch, delete #88

Open a-x- opened 4 years ago

jameslnewell commented 4 years ago

Thanks for the idea! Sounds like a reasonable feature.

In the mean time you can achieve a similar outcome using the .use() method.

e.g. https://codesandbox.io/s/xhr-mock-all-h8ry7