mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: http 200 test for api routes
This commit is contained in:
@@ -412,6 +412,8 @@ describe('API', async () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert.strictEqual(response.statusCode, 200, `HTTP 200 expected (path: ${method} ${path}`);
|
||||||
|
|
||||||
const hasJSON = http200.content && http200.content['application/json'];
|
const hasJSON = http200.content && http200.content['application/json'];
|
||||||
if (hasJSON) {
|
if (hasJSON) {
|
||||||
schema = context[method].responses['200'].content['application/json'].schema;
|
schema = context[method].responses['200'].content['application/json'].schema;
|
||||||
|
|||||||
Reference in New Issue
Block a user