From 8d37d5bb7619dfb1e11f2e378d8a99d738516cc0 Mon Sep 17 00:00:00 2001 From: Jimmy Bosse Date: Wed, 10 Jul 2024 08:35:10 -0400 Subject: [PATCH] Greening. --- __tests__/planview-client.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/planview-client.test.js b/__tests__/planview-client.test.js index febd2c3..2e733b5 100644 --- a/__tests__/planview-client.test.js +++ b/__tests__/planview-client.test.js @@ -6,7 +6,7 @@ const postMock = jest.spyOn(axios, 'post').mockImplementation() describe('createCase', () => { const planviewClient = new PlanviewClient('https://example.com', 'somebase64Auth') const validResponse = { - status: 200, + status: 201, data: { id: 1234 } @@ -79,7 +79,7 @@ describe('createCase', () => { it('returns an error if the card is not created', async () => { const invalidResponse = { - status: 200, + status: 201, data: {} } postMock.mockImplementation((_url, _payload, _config) => { @@ -92,7 +92,7 @@ describe('createCase', () => { expect(result.result).toBe(invalidResponse) }) - it('returns an error if the response is not 200', async () => { + it('returns an error if the response is not 201', async () => { const invalidResponse = { status: 500, data: {}