From 82768fcf6ef3fb07c70b7e21d2a8d739b0e2fb16 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 22 Dec 2021 14:39:31 -0500 Subject: [PATCH] chore: remove debug logs in test/api.js --- test/api.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/api.js b/test/api.js index 97d19470f6..64857041f2 100644 --- a/test/api.js +++ b/test/api.js @@ -390,7 +390,6 @@ describe('API', async () => { try { if (type === 'json') { - console.log(`calling ${url}`); response = await request(url, { method: method, jar: !unauthenticatedRoutes.includes(path) ? jar : undefined, @@ -419,12 +418,7 @@ describe('API', async () => { it('response status code should match one of the schema defined responses', () => { // HACK: allow HTTP 418 I am a teapot, for now 👇 - try { - assert(context[method].responses.hasOwnProperty('418') || Object.keys(context[method].responses).includes(String(response.statusCode)), `${method.toUpperCase()} ${path} sent back unexpected HTTP status code: ${response.statusCode}`); - } catch (e) { - console.log(response.body); - throw e; - } + assert(context[method].responses.hasOwnProperty('418') || Object.keys(context[method].responses).includes(String(response.statusCode)), `${method.toUpperCase()} ${path} sent back unexpected HTTP status code: ${response.statusCode}`); }); // Recursively iterate through schema properties, comparing type