fix: http 200 test for api routes

v1.18.x
Julian Lam 4 years ago
parent 501441b736
commit bd5839639d

@ -412,6 +412,8 @@ describe('API', async () => {
return;
}
assert.strictEqual(response.statusCode, 200, `HTTP 200 expected (path: ${method} ${path}`);
const hasJSON = http200.content && http200.content['application/json'];
if (hasJSON) {
schema = context[method].responses['200'].content['application/json'].schema;

Loading…
Cancel
Save