Fix tests

This commit is contained in:
Andras Schmelczer 2025-03-16 18:19:40 +00:00
parent 74c007be25
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";
describe("File operations", () => {
class MockDatabase {
class MockDatabase implements Partial<Database> {
public getLatestDocumentByRelativePath(
_find: RelativePath
): DocumentRecord | undefined {
// no-op
return undefined;
}
public move(
_oldRelativePath: RelativePath,
_newRelativePath: RelativePath
): void {
// no-op
}
}
class FakeFileSystemOperations implements FileSystemOperations {