Skip to content

Commit

Permalink
stat- and question-services tests fix (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelalvaigle committed Dec 1, 2024
1 parent f319b1f commit fb80776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions questionservice/question-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
2 changes: 1 addition & 1 deletion statservice/stat-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down

0 comments on commit fb80776

Please sign in to comment.