test: add more info to failiing response

This commit is contained in:
Barış Soner Uşaklı
2026-02-10 21:31:47 -05:00
parent 9a198c382e
commit 87fdca2a8a

View File

@@ -532,7 +532,7 @@ describe('API', async () => {
assert(
responses.hasOwnProperty('418') ||
Object.keys(responses).includes(String(result.response.statusCode)),
`${method.toUpperCase()} ${path} sent back unexpected HTTP status code: ${result.response.statusCode}`
`${method.toUpperCase()} ${path} sent back unexpected HTTP status code: ${result.response.statusCode}, body: ${JSON.stringify(result.body)} status: ${result.response.statusText}`,
);
});