Skip to content

Commit

Permalink
Greening.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbosse committed Jul 10, 2024
1 parent a0908c7 commit 8d37d5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/planview-client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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) => {
Expand All @@ -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: {}
Expand Down

0 comments on commit 8d37d5b

Please sign in to comment.