fix: lint
This commit is contained in:
parent
ef04f6c7af
commit
d84e6b485e
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ export class TeacherInvitationController extends BaseController {
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue