test: fix lint errors in moderation service tests

This commit is contained in:
syntaxbullet
2026-01-06 18:05:05 +01:00
parent 47b980eff1
commit c807fd4fd0

View File

@@ -198,7 +198,7 @@ describe("ModerationService", () => {
reason: "test reason" reason: "test reason"
}); });
expect(result.caseId).toBe("CASE-0002"); expect(result?.caseId).toBe("CASE-0002");
expect(mockInsert).toHaveBeenCalled(); expect(mockInsert).toHaveBeenCalled();
expect(mockValues).toHaveBeenCalledWith(expect.objectContaining({ expect(mockValues).toHaveBeenCalledWith(expect.objectContaining({
caseId: "CASE-0002", caseId: "CASE-0002",
@@ -260,7 +260,7 @@ describe("ModerationService", () => {
reason: "resolved" reason: "resolved"
}); });
expect(result.active).toBe(false); expect(result?.active).toBe(false);
expect(mockUpdate).toHaveBeenCalled(); expect(mockUpdate).toHaveBeenCalled();
expect(mockSet).toHaveBeenCalledWith(expect.objectContaining({ expect(mockSet).toHaveBeenCalledWith(expect.objectContaining({
active: false, active: false,