forked from syntaxbullet/AuroraBot-discord
test: fix lint errors in moderation service tests
This commit is contained in:
@@ -198,7 +198,7 @@ describe("ModerationService", () => {
|
||||
reason: "test reason"
|
||||
});
|
||||
|
||||
expect(result.caseId).toBe("CASE-0002");
|
||||
expect(result?.caseId).toBe("CASE-0002");
|
||||
expect(mockInsert).toHaveBeenCalled();
|
||||
expect(mockValues).toHaveBeenCalledWith(expect.objectContaining({
|
||||
caseId: "CASE-0002",
|
||||
@@ -260,7 +260,7 @@ describe("ModerationService", () => {
|
||||
reason: "resolved"
|
||||
});
|
||||
|
||||
expect(result.active).toBe(false);
|
||||
expect(result?.active).toBe(false);
|
||||
expect(mockUpdate).toHaveBeenCalled();
|
||||
expect(mockSet).toHaveBeenCalledWith(expect.objectContaining({
|
||||
active: false,
|
||||
|
||||
Reference in New Issue
Block a user