diff --git a/questionservice/question-service.test.js b/questionservice/question-service.test.js index 6aea584..fb78fde 100644 --- a/questionservice/question-service.test.js +++ b/questionservice/question-service.test.js @@ -28,8 +28,8 @@ describe('Question Service', () => { wrong3: 'testWrong3', }; - const response = await request(app).post('/addstst').send(newQuestion); + const response = await request(app).post('/addquestion').send(newQuestion); expect(response.status).toBe(200); - expect(response.body).toHaveProperty('userId', '507f1f77bcf86cd799439011'); + expect(response.body).toHaveProperty('type', 'testType'); }); }); diff --git a/statservice/stat-service.test.js b/statservice/stat-service.test.js index f008e6c..e55a487 100644 --- a/statservice/stat-service.test.js +++ b/statservice/stat-service.test.js @@ -27,7 +27,7 @@ describe('Stat Service', () => { points: 0, }; - const response = await request(app).post('/addstst').send(newStat); + const response = await request(app).post('/addstat').send(newStat); expect(response.status).toBe(200); expect(response.body).toHaveProperty('userId', '507f1f77bcf86cd799439011'); });