This commit is contained in:
Andras Schmelczer 2025-03-02 10:25:38 +00:00
commit a2522ca44a
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -1,17 +1,27 @@
import type { FileSystemOperations } from "sync-client";
import type { Database, RelativePath } from "../persistence/database";
import type {
Database,
DocumentMetadata,
RelativePath
} from "../persistence/database";
import { FileOperations } from "./file-operations";
import { Logger } from "../tracing/logger";
import { assertSetContainsExactly } from "../utils/assert-set-contains-exactly";
describe("File operations", () => {
class MockDatabase {
public async updatePath(
public async move(
_oldRelativePath: RelativePath,
_newRelativePath: RelativePath
): Promise<void> {
// this is called but irrelevant for this mock
}
public getResolvedDocument(
_relativePath: RelativePath | undefined
): DocumentMetadata | undefined {
return undefined;
}
}
class FakeFileSystemOperations implements FileSystemOperations {