You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to write a test where a POST request to some URL returns some data, but I didn't care what the actually posted data is. Took me a while to figure out why I can't achieve this with Hock.
The docs in code say that body parameter is optional:
I was trying to write a test where a POST request to some URL returns some data, but I didn't care what the actually posted data is. Took me a while to figure out why I can't achieve this with Hock.
The docs in code say that body parameter is optional:
https://github.com/mmalecki/hock/blob/master/lib/hock.js#L186
But according to my testing it's not. Also found from code that body must match exactly:
https://github.com/mmalecki/hock/blob/master/lib/request.js#L213
The text was updated successfully, but these errors were encountered: