fix: 🐛 Fix missing types that make build fail

This commit is contained in:
Maxime Cannoodt 2022-08-25 10:33:57 +02:00
parent f84ddba528
commit 403ce696bc
2 changed files with 4 additions and 9 deletions

2
plugin

@ -1 +1 @@
Subproject commit a6d4bc71fb93049516ee107c31c3bde5aa26e597
Subproject commit 73733c0292cb3f0d6775c69c734e80c690932777

View File

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