From d84e6b485e76dbb38c8ad67223026b591434f1b7 Mon Sep 17 00:00:00 2001 From: Gabriellvl Date: Tue, 15 Apr 2025 17:36:13 +0200 Subject: [PATCH] fix: lint --- backend/tests/controllers/teacher-invitations.test.ts | 2 +- common/src/interfaces/teacher-invitation.ts | 2 +- frontend/src/controllers/teacher-invitations.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/tests/controllers/teacher-invitations.test.ts b/backend/tests/controllers/teacher-invitations.test.ts index c9e0d623..f14d3b3a 100644 --- a/backend/tests/controllers/teacher-invitations.test.ts +++ b/backend/tests/controllers/teacher-invitations.test.ts @@ -37,7 +37,7 @@ describe('Teacher controllers', () => { expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ invitations: expect.anything() })); const result = jsonMock.mock.lastCall?.[0]; - console.log(result.invitations); + // console.log(result.invitations); expect(result.invitations).to.have.length.greaterThan(0); }); diff --git a/common/src/interfaces/teacher-invitation.ts b/common/src/interfaces/teacher-invitation.ts index 0d310d0e..3158b806 100644 --- a/common/src/interfaces/teacher-invitation.ts +++ b/common/src/interfaces/teacher-invitation.ts @@ -12,5 +12,5 @@ export interface TeacherInvitationData { sender: string; receiver: string; class: string; - accepted?: boolean; // use for put requests, else skip + accepted?: boolean; // Use for put requests, else skip } diff --git a/frontend/src/controllers/teacher-invitations.ts b/frontend/src/controllers/teacher-invitations.ts index 8083c152..f3383395 100644 --- a/frontend/src/controllers/teacher-invitations.ts +++ b/frontend/src/controllers/teacher-invitations.ts @@ -30,7 +30,7 @@ export class TeacherInvitationController extends BaseController { return this.delete(`/${data.sender}/${data.receiver}/${data.class}`); } - async respond(data: TeacherInvitationData) { + async respond(data: TeacherInvitationData): Promise { return this.put("/", data); } }