test: format multiline assertion in comments service spec
- Adjusted `remove` test to improve readability of multiline assertion.
This commit is contained in:
@@ -76,7 +76,9 @@ describe("CommentsService", () => {
|
||||
|
||||
it("should throw ForbiddenException if not owner and not admin", async () => {
|
||||
mockCommentsRepository.findOne.mockResolvedValue({ userId: "u1" });
|
||||
await expect(service.remove("other", "c1")).rejects.toThrow(ForbiddenException);
|
||||
await expect(service.remove("other", "c1")).rejects.toThrow(
|
||||
ForbiddenException,
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user