omg it mostly works for deletes

This commit is contained in:
Andras Schmelczer 2025-03-10 22:49:51 +00:00
commit d23c1a8dbc
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -1,7 +1,6 @@
import type { FileSystemOperations } from "sync-client";
import type {
Database,
DocumentMetadata,
DocumentRecord,
RelativePath
} from "../persistence/database";
@ -11,14 +10,7 @@ import { assertSetContainsExactly } from "../utils/assert-set-contains-exactly";
describe("File operations", () => {
class MockDatabase {
public move(
_oldRelativePath: RelativePath,
_newRelativePath: RelativePath
): void {
// this is called but irrelevant for this mock
}
public getDocumentByRelativePath(
public getLatestDocumentByRelativePath(
_find: RelativePath
): DocumentRecord | undefined {
return undefined;