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
In the browser, all response have a data property. Why doesn't supertest have it? And response.body is empty.
I send my response like this. res.status(200).send({ statusText: 'Account created' });.
I've tried using .json and also tried using .contentType('application/json'). I've also tried setting request.post('/register').set('Accept', 'application/json').
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the browser, all response have a
dataproperty. Why doesn'tsupertesthave it? Andresponse.bodyis empty.I send my response like this.
res.status(200).send({ statusText: 'Account created' });.I've tried using
.jsonand also tried using.contentType('application/json'). I've also tried settingrequest.post('/register').set('Accept', 'application/json').Any idea?
Beta Was this translation helpful? Give feedback.
All reactions