Skip to content

Build your personal knowledge base with Trilium Notes

test(client): say what the moveToParent=false deletion spec verifies

perfectra1n99787dc836c6
diff --git a/apps/client/src/services/branches.spec.ts b/apps/client/src/services/branches.spec.ts
index 267fcf7577..aac86a7ec8 100644
--- a/apps/client/src/services/branches.spec.ts
+++ b/apps/client/src/services/branches.spec.ts
@@ -282,7 +282,8 @@ describe("deleteNotes", () => {
const result = await branches.deleteNotes(["delBranch4"], false, false);
expect(result).toBe(true);
- // getActiveContext only used by activateNeighbouringNotePath, which is skipped
+ // With moveToParent off, the active tab is left alone: the collection views that pass it
+ // delete a child of the note they show, so there is nothing to navigate away from.
expect(getActiveContext).not.toHaveBeenCalled();
});