diff --git a/plugin b/plugin index a6d4bc7..73733c0 160000 --- a/plugin +++ b/plugin @@ -1 +1 @@ -Subproject commit a6d4bc71fb93049516ee107c31c3bde5aa26e597 +Subproject commit 73733c0292cb3f0d6775c69c734e80c690932777 diff --git a/server/src/tasks/deleteExpiredNotes.unit.test.ts b/server/src/tasks/deleteExpiredNotes.unit.test.ts index 920f268..88fe379 100644 --- a/server/src/tasks/deleteExpiredNotes.unit.test.ts +++ b/server/src/tasks/deleteExpiredNotes.unit.test.ts @@ -5,11 +5,8 @@ import EventLogger from "../logging/EventLogger"; import logger from "../logging/logger"; import * as filter from "../lib/expiredNoteFilter"; -// vi.mock("../db/note.dao", () => ({ -// getExpiredNotes: vi.fn(), -// deleteNotes: vi.fn(), -// })); - +vi.mock("../db/note.dao"); +vi.mock("../logging/EventLogger"); vi.mock("../lib/expiredNoteFilter", () => { const instance = { addNoteIds: vi.fn(), @@ -17,9 +14,6 @@ vi.mock("../lib/expiredNoteFilter", () => { return { getExpiredNoteFilter: () => instance }; }); -vi.mock("../db/note.dao"); -vi.mock("../logging/EventLogger"); - vi.spyOn(logger, "error"); describe("deleteExpiredNotes", () => { @@ -37,6 +31,7 @@ describe("deleteExpiredNotes", () => { hmac: "test", insert_time: new Date(), expire_time: new Date(), + crypto_version: "v1", }, ]); mockedDao.deleteNotes.mockResolvedValue(1);