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 31d6a95 commit df0924e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions game_service/game.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,12 @@ describe('Game Service', () => {

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

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

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

0 comments on commit df0924e

Please sign in to comment.