Skip to content

Commit

Permalink
fix expected error code in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
realtalin authored and juhanikat committed Oct 11, 2024
1 parent b67fbbd commit 314c303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/api-tests/locality/contradictory_loc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Min and max age checks work', () => {
locality: locality,
})

expect(putReqStatus).toEqual(400)
expect(putReqStatus).toEqual(403)

const { body: getReqBody, status: getReqStatus } = await send<LocalityDetailsType>(`locality/all`, 'GET')
expect(getReqStatus).toEqual(200)
Expand All @@ -39,7 +39,7 @@ describe('Min and max age checks work', () => {
locality.max_age = 9
const writeResult = await send<{ id: number }>('locality', 'PUT', { locality: locality })

expect(writeResult.status).toEqual(400)
expect(writeResult.status).toEqual(403)
expect(writeResult.body).toEqual({})
})
})

0 comments on commit 314c303

Please sign in to comment.