From 314c303239875d7dc128f7bab2983ae563e71e11 Mon Sep 17 00:00:00 2001 From: Sampo Riitala <57003465+realtalin@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:02:12 +0300 Subject: [PATCH] fix expected error code in tests --- backend/src/api-tests/locality/contradictory_loc.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api-tests/locality/contradictory_loc.test.ts b/backend/src/api-tests/locality/contradictory_loc.test.ts index 899268a..368f76e 100644 --- a/backend/src/api-tests/locality/contradictory_loc.test.ts +++ b/backend/src/api-tests/locality/contradictory_loc.test.ts @@ -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(`locality/all`, 'GET') expect(getReqStatus).toEqual(200) @@ -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({}) }) })