mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
fix: test-util snippet to proper status code check [no-ticket] (#7844)
This commit is contained in:
parent
9fdff449d1
commit
b0fb6fb540
@ -74,7 +74,7 @@ const getCookies = 'const cookies = insomnia.response.cookies.toObject();';
|
|||||||
|
|
||||||
const checkStatus200 =
|
const checkStatus200 =
|
||||||
`insomnia.test('Check if status is 200', () => {
|
`insomnia.test('Check if status is 200', () => {
|
||||||
insomnia.expect(insomnia.response.status).to.eql(200);
|
insomnia.expect(insomnia.response.code).to.eql(200);
|
||||||
});`;
|
});`;
|
||||||
|
|
||||||
const expectToEqual = 'insomnia.expect(200).to.eql(200);';
|
const expectToEqual = 'insomnia.expect(200).to.eql(200);';
|
||||||
|
Loading…
Reference in New Issue
Block a user