mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 19:11:22 +01:00
test: add more info to failiing response
This commit is contained in:
@@ -532,7 +532,7 @@ describe('API', async () => {
|
|||||||
assert(
|
assert(
|
||||||
responses.hasOwnProperty('418') ||
|
responses.hasOwnProperty('418') ||
|
||||||
Object.keys(responses).includes(String(result.response.statusCode)),
|
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}`,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user