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"
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user