Skip to content

Commit

Permalink
test for "/history/questions" (???)
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288574 committed Apr 26, 2024
1 parent 6eb0c15 commit 773a732
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gatewayservice/gateway-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,20 @@ describe('Gateway Service', () => {
expect(response.statusCode).toBe(200);
expect(response.body.userId).toBe('mockedUserId');
});

// Test /history/games/:username


// Test /history/questions
it('should forward add user request to user service', async () => {
await request(app).post('/login')
.send({ username: 'testuser', password: 'testpassword' });

const response = await request(app)
.get('/history/questions');

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


});

0 comments on commit 773a732

Please sign in to comment.