Working for non-deletes
This commit is contained in:
parent
ec54d0fdb3
commit
054d109ef8
1 changed files with 546 additions and 575 deletions
|
|
@ -2,6 +2,7 @@ import type { FileSystemOperations } from "sync-client";
|
|||
import type {
|
||||
Database,
|
||||
DocumentMetadata,
|
||||
DocumentRecord,
|
||||
RelativePath
|
||||
} from "../persistence/database";
|
||||
import { FileOperations } from "./file-operations";
|
||||
|
|
@ -10,16 +11,16 @@ import { assertSetContainsExactly } from "../utils/assert-set-contains-exactly";
|
|||
|
||||
describe("File operations", () => {
|
||||
class MockDatabase {
|
||||
public async move(
|
||||
public move(
|
||||
_oldRelativePath: RelativePath,
|
||||
_newRelativePath: RelativePath
|
||||
): Promise<void> {
|
||||
): void {
|
||||
// this is called but irrelevant for this mock
|
||||
}
|
||||
|
||||
public getResolvedDocument(
|
||||
_relativePath: RelativePath | undefined
|
||||
): DocumentMetadata | undefined {
|
||||
public getDocumentByRelativePath(
|
||||
_find: RelativePath
|
||||
): DocumentRecord | undefined {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue