fix: lint

This commit is contained in:
Gabriellvl 2025-04-15 17:36:13 +02:00
parent ef04f6c7af
commit d84e6b485e
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ describe('Teacher controllers', () => {
expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ invitations: expect.anything() })); expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ invitations: expect.anything() }));
const result = jsonMock.mock.lastCall?.[0]; const result = jsonMock.mock.lastCall?.[0];
console.log(result.invitations); // console.log(result.invitations);
expect(result.invitations).to.have.length.greaterThan(0); expect(result.invitations).to.have.length.greaterThan(0);
}); });

View file

@ -12,5 +12,5 @@ export interface TeacherInvitationData {
sender: string; sender: string;
receiver: string; receiver: string;
class: string; class: string;
accepted?: boolean; // use for put requests, else skip accepted?: boolean; // Use for put requests, else skip
} }

View file

@ -30,7 +30,7 @@ export class TeacherInvitationController extends BaseController {
return this.delete<TeacherInvitationResponse>(`/${data.sender}/${data.receiver}/${data.class}`); return this.delete<TeacherInvitationResponse>(`/${data.sender}/${data.receiver}/${data.class}`);
} }
async respond(data: TeacherInvitationData) { async respond(data: TeacherInvitationData): Promise<TeacherInvitationResponse> {
return this.put<TeacherInvitationResponse>("/", data); return this.put<TeacherInvitationResponse>("/", data);
} }
} }