Skip to content

Commit

Permalink
update tests in route
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiiagran committed Oct 13, 2023
1 parent c691628 commit d44a98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/routes/userRoutes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ describe('Users Routes', () => {

// simulate a request with invalid course id
const response = await request(`http://localhost:${PORT}`)
.get('/api/users?user_id=' + userId + '&course_id=this-is-an-invalid-courseId');
.get('/api/users/subscriptions/?user_id=' + userId + '&course_id=this-is-an-invalid-courseId');


expect(response.status).toBe(500);
Expand Down

0 comments on commit d44a98a

Please sign in to comment.