Unit testing : how to check header value ? #6206
Unanswered
cmarmonier
asked this question in
Help
Replies: 1 comment
-
|
Run into this one today; this is how it's done: If you run into something similar in the future, open up const response = await insomnia.send();
console.log(response.headers); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I want to make an unit test. I do it :
Now I want to test that the value of "Location" header parameter is "xxx".
How cant I do it ?
Where is documentation for insomnia.send object (I didn't find it) ?
Also for an another request, I want to verify that "Location" header parameter do not exist
I thank you
Beta Was this translation helpful? Give feedback.
All reactions