Closed wheresrhys closed 1 month ago
these do not work
fetchMock.called({body: myObject}) fetchMock.called('*', {body: myObject}) fetchMock.called('*', {body: JSON.stringify(myObject)})
What does?
JSON.parse(fetchMock.lastCall('*').options.body) ~= myObject
Not a very nice API
I've been beating my head against this too.
Biggest problem for me is the for some reason the body is wrapped in a promise and I don't understand why.
body
these do not work
What does?
Not a very nice API