From 7836b0553dd72c36999e61afc591e1dd2ee48b29 Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Wed, 22 Jun 2022 18:28:50 -0700 Subject: [PATCH] test: fix error code in test I tried running recreating this and the API responds with a 4xx, not a 5xx in this case. --- __tests__/cmds/openapi.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/cmds/openapi.test.js b/__tests__/cmds/openapi.test.js index 2fc7b3e8c..ef6e600ae 100644 --- a/__tests__/cmds/openapi.test.js +++ b/__tests__/cmds/openapi.test.js @@ -409,7 +409,7 @@ describe('rdme openapi', () => { .post('/api/v1/api-specification', { registryUUID }) .delayConnection(1000) .basicAuth({ user: key }) - .reply(500, errorObject); + .reply(400, errorObject); await expect( openapi.run({