From bd5839639d844e5c2ec35c477e1f8e3faa6bfdd0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 2 Feb 2021 12:08:31 -0500 Subject: [PATCH] fix: http 200 test for api routes --- test/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/api.js b/test/api.js index 022e31a112..a85143910d 100644 --- a/test/api.js +++ b/test/api.js @@ -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;