Fix tests

This commit is contained in:
Andras Schmelczer 2025-03-16 18:19:40 +00:00
commit f0bdecf447
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -9,12 +9,20 @@ import { assertSetContainsExactly } from "../utils/assert-set-contains-exactly";
import type { FileSystemOperations } from "./filesystem-operations"; import type { FileSystemOperations } from "./filesystem-operations";
describe("File operations", () => { describe("File operations", () => {
class MockDatabase { class MockDatabase implements Partial<Database> {
public getLatestDocumentByRelativePath( public getLatestDocumentByRelativePath(
_find: RelativePath _find: RelativePath
): DocumentRecord | undefined { ): DocumentRecord | undefined {
// no-op
return undefined; return undefined;
} }
public move(
_oldRelativePath: RelativePath,
_newRelativePath: RelativePath
): void {
// no-op
}
} }
class FakeFileSystemOperations implements FileSystemOperations { class FakeFileSystemOperations implements FileSystemOperations {