Skip to content

Commit

Permalink
feat(back-e2e): Test for max id size
Browse files Browse the repository at this point in the history
  • Loading branch information
GordiNoki authored and tsa96 committed Feb 9, 2025
1 parent 02e175d commit 3b83e5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/backend-e2e/src/maps.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,9 @@ describe('Maps', () => {
});
});

it('should 400 if map id is bigger then max 32-bit integer', () =>
req.get({ url: `maps/${2 ** 31}`, status: 400, token: u1Token }));

it('should 404 if the map is not found', () =>
req.get({ url: `maps/${NULL_ID}`, status: 404, token: u1Token }));
});
Expand Down Expand Up @@ -2512,6 +2515,9 @@ describe('Maps', () => {
).toHaveLength(1);
});

it('should 400 if map id is bigger then max 32-bit integer', () =>
req.post({ url: `maps/${2 ** 31}`, status: 400, token: u1Token }));

it('should 401 when no access token is provided', () =>
req.unauthorizedTest('maps/1', 'post'));
});
Expand Down

0 comments on commit 3b83e5a

Please sign in to comment.