Currently it just fails at ./lib/index.js:128 with SyntaxError: Unexpected token u in JSON at position 0
|
xhr.requestBody = JSON.parse(xhr.requestBody) |
Should properly notify that the client sent header indicating JSON, but did not send proper json.
A normal api would return a 4xx error probably, but we should probably not assume that.
Currently it just fails at ./lib/index.js:128 with
SyntaxError: Unexpected token u in JSON at position 0sinon-mock-server/lib/index.js
Line 128 in 0d49aa3
Should properly notify that the client sent header indicating JSON, but did not send proper json.
A normal api would return a 4xx error probably, but we should probably not assume that.