mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-14 18:47:32 +01:00
test: add more info to failiing response
This commit is contained in:
@@ -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}`,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user