test: format multiline assertion in comments service spec

- Adjusted `remove` test to improve readability of multiline assertion.
This commit is contained in:
Mathis HERRIOT
2026-01-29 15:10:22 +01:00
parent f1d1359dcb
commit 1e0bb03182

View File

@@ -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,
);
});
});
});