fix: test-util snippet to proper status code check [no-ticket] (#7844)

This commit is contained in:
Filipe Freire 2024-08-20 10:20:24 +01:00 committed by GitHub
parent 9fdff449d1
commit b0fb6fb540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ const getCookies = 'const cookies = insomnia.response.cookies.toObject();';
const checkStatus200 =
`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);';