style: fix linting issues met Prettier
This commit is contained in:
parent
8e2643f596
commit
d88add8351
9 changed files with 48 additions and 52 deletions
|
@ -5,11 +5,11 @@ import {
|
|||
createInvitationHandler,
|
||||
deleteInvitationHandler,
|
||||
getAllInvitationsHandler,
|
||||
getInvitationHandler
|
||||
getInvitationHandler,
|
||||
} from '../../src/controllers/teacher-invitations';
|
||||
import { TeacherInvitationData } from '@dwengo-1/common/interfaces/teacher-invitation';
|
||||
import { getClassHandler } from '../../src/controllers/classes';
|
||||
import {BadRequestException} from "../../src/exceptions/bad-request-exception";
|
||||
import { BadRequestException } from '../../src/exceptions/bad-request-exception';
|
||||
|
||||
describe('Teacher controllers', () => {
|
||||
let req: Partial<Request>;
|
||||
|
@ -91,8 +91,7 @@ describe('Teacher controllers', () => {
|
|||
params: { no: 'no params' },
|
||||
};
|
||||
|
||||
await expect( async () => getInvitationHandler(req as Request, res as Response))
|
||||
.rejects.toThrowError(BadRequestException);
|
||||
await expect(async () => getInvitationHandler(req as Request, res as Response)).rejects.toThrowError(BadRequestException);
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue