diff --git a/backend/tests/controllers/assignments.test.ts b/backend/tests/controllers/assignments.test.ts index 26f2869d..fa884595 100644 --- a/backend/tests/controllers/assignments.test.ts +++ b/backend/tests/controllers/assignments.test.ts @@ -10,6 +10,7 @@ function createRequestObject( classid: string, assignmentid: string ): { + query: {full: string}, params: { classid: string; id: string }; } { return { @@ -17,6 +18,9 @@ function createRequestObject( classid: classid, id: assignmentid, }, + query: { + full: 'true' + } }; } diff --git a/backend/tests/controllers/groups.test.ts b/backend/tests/controllers/groups.test.ts index 2cbe28f0..88b7dd7c 100644 --- a/backend/tests/controllers/groups.test.ts +++ b/backend/tests/controllers/groups.test.ts @@ -18,6 +18,7 @@ function createRequestObject( assignmentid: string, groupNumber: string ): { + query: { full: string } params: { classid: string; groupid: string; assignmentid: string }; } { return { @@ -26,6 +27,9 @@ function createRequestObject( assignmentid: assignmentid, groupid: groupNumber, }, + query: { + full: 'true' + } }; }