Fix tests

This commit is contained in:
Andras Schmelczer 2026-04-25 16:00:07 +01:00
parent 081e35be5c
commit fefac224b0
4 changed files with 161 additions and 400 deletions

View file

@ -136,7 +136,6 @@ export class SyncEventQueue {
if (input.oldPath !== undefined) {
if (pendingDocumentId !== undefined) {
this.updatePendingCreatePath(input.oldPath, path);
this.events.push({ type: SyncEventType.LocalUpdate, documentId: pendingDocumentId, path, originalPath: path });
} else {
this.documents.delete(input.oldPath);
this.documents.set(path, record!);
@ -146,11 +145,13 @@ export class SyncEventQueue {
e.path = path;
}
}
this.events.push({ type: SyncEventType.LocalUpdate, documentId: documentId!, path, originalPath: path });
await this.save();
}
return
}
this.events.push({ type: SyncEventType.LocalUpdate, documentId: pendingDocumentId ?? documentId!, path, originalPath: path });
}