fix: tests

This commit is contained in:
Gabriellvl 2025-04-09 12:19:41 +02:00
parent 0a0857deb9
commit fbc77b9ad3
2 changed files with 2 additions and 2 deletions

View file

@ -222,7 +222,7 @@ describe('Student controllers', () => {
it('Create join request student already in class error', async () => { it('Create join request student already in class error', async () => {
req = { req = {
params: { username: 'Noordkaap' }, params: { username: 'Noordkaap' },
body: { classId: 'id02' }, body: { classId: '34d484a1-295f-4e9f-bfdc-3e7a23d86a89' },
}; };
await expect(async () => createStudentRequestHandler(req as Request, res as Response)).rejects.toThrow(ConflictException); await expect(async () => createStudentRequestHandler(req as Request, res as Response)).rejects.toThrow(ConflictException);

View file

@ -183,7 +183,7 @@ describe('Teacher controllers', () => {
it('Update join request status', async () => { it('Update join request status', async () => {
req = { req = {
params: { classId: '34d484a1-295f-4e9f-bfdc-3e7a23d86a89' }, params: { classId: '34d484a1-295f-4e9f-bfdc-3e7a23d86a89', studentUsername: 'PinkFloyd' },
body: { accepted: 'true' }, body: { accepted: 'true' },
}; };