From f0bdecf44714eb7b8878b57c212cb644edf8c776 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 16 Mar 2025 18:19:40 +0000 Subject: [PATCH] Fix tests --- .../src/file-operations/file-operations.test.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/sync-client/src/file-operations/file-operations.test.ts b/frontend/sync-client/src/file-operations/file-operations.test.ts index e0514ae8..43308f8c 100644 --- a/frontend/sync-client/src/file-operations/file-operations.test.ts +++ b/frontend/sync-client/src/file-operations/file-operations.test.ts @@ -9,12 +9,20 @@ import { assertSetContainsExactly } from "../utils/assert-set-contains-exactly"; import type { FileSystemOperations } from "./filesystem-operations"; describe("File operations", () => { - class MockDatabase { + class MockDatabase implements Partial { public getLatestDocumentByRelativePath( _find: RelativePath ): DocumentRecord | undefined { + // no-op return undefined; } + + public move( + _oldRelativePath: RelativePath, + _newRelativePath: RelativePath + ): void { + // no-op + } } class FakeFileSystemOperations implements FileSystemOperations {