From d44a98aa0a788a499cbc70e2893c1a85d428a5a6 Mon Sep 17 00:00:00 2001 From: sofiiagran Date: Fri, 13 Oct 2023 10:55:49 +0200 Subject: [PATCH] update tests in route --- __tests__/routes/userRoutes.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/routes/userRoutes.spec.js b/__tests__/routes/userRoutes.spec.js index c07897fd..5ab0ea7d 100644 --- a/__tests__/routes/userRoutes.spec.js +++ b/__tests__/routes/userRoutes.spec.js @@ -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);