style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-04-01 16:39:31 +00:00
parent df8f4043a8
commit b9681926f8
10 changed files with 31 additions and 44 deletions

View file

@ -45,15 +45,13 @@ describe('Teacher controllers', () => {
it('Teacher not found', async () => {
req = { params: { username: 'doesnotexist' } };
await expect(async () => getTeacherHandler(req as Request, res as Response))
.rejects.toThrow(NotFoundException);
await expect(async () => getTeacherHandler(req as Request, res as Response)).rejects.toThrow(NotFoundException);
});
it('No username', async () => {
req = { params: {} };
await expect(async () => getTeacherHandler(req as Request, res as Response))
.rejects.toThrowError(BadRequestException);
await expect(async () => getTeacherHandler(req as Request, res as Response)).rejects.toThrowError(BadRequestException);
});
it('Create and delete teacher', async () => {
@ -62,7 +60,7 @@ describe('Teacher controllers', () => {
username: 'coolteacher',
firstName: 'New',
lastName: 'Teacher',
}
};
req = {
body: teacher,
};
@ -87,15 +85,13 @@ describe('Teacher controllers', () => {
},
};
await expect(async () => createTeacherHandler(req as Request, res as Response))
.rejects.toThrowError(EntityAlreadyExistsException);
await expect(async () => createTeacherHandler(req as Request, res as Response)).rejects.toThrowError(EntityAlreadyExistsException);
});
it('Create teacher no body', async () => {
req = { body: {} };
await expect(async () => createTeacherHandler(req as Request, res as Response))
.rejects.toThrowError(BadRequestException);
await expect(async () => createTeacherHandler(req as Request, res as Response)).rejects.toThrowError(BadRequestException);
});
it('Teacher list', async () => {