Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Sep 26, 2024
1 parent 0222885 commit d2f8a18
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/popo/noticeLike/noticeLike.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ describe('NoticeLikeController', () => {

const user = { uuid: '1' } as JwtPayload;

await expect(controller.delete(userId, noticeId, { user: user })).rejects.toThrow();
await expect(
controller.delete(userId, noticeId, { user: user }),
).rejects.toThrow();
});

it('should delete like', async () => {
Expand All @@ -80,6 +82,8 @@ describe('NoticeLikeController', () => {
noticeLikeService.findByUserIdAndNoticeId.mockResolvedValue(like);
noticeLikeService.delete.mockResolvedValue(mockedDeletedResult);

expect(await controller.delete(userId, noticeId, { user: user })).toBe(mockedDeletedResult);
expect(await controller.delete(userId, noticeId, { user: user })).toBe(
mockedDeletedResult,
);
});
});

0 comments on commit d2f8a18

Please sign in to comment.