Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
22Noel committed Apr 25, 2024
1 parent df0924e commit 4aeaa28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions game_service/game.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,13 @@ describe('Game Service', () => {

expect(response.statusCode).toBe(200);
});

it("Should return 200 with a valid token when get gamemodes", async () => {
let response = await request(app)
.post('/api/game/gamemodes')
.send({ token: validToken });

expect(response.statusCode).toBe(200);
});

})

0 comments on commit 4aeaa28

Please sign in to comment.