Skip to content

Build your personal knowledge base with Trilium Notes

test(tabs): name order() in the placement spec comment

matt wilkie08fb9536c81a
diff --git a/apps/client/src/components/tab_manager.spec.ts b/apps/client/src/components/tab_manager.spec.ts
index c7c06fb4e5..99f7441a63 100644
--- a/apps/client/src/components/tab_manager.spec.ts
+++ b/apps/client/src/components/tab_manager.spec.ts
@@ -61,7 +61,7 @@ describe("TabManager tab placement", () => {
const [a, b, c] = await openEmptyTabs(tm, 3);
tm.activeNtxId = b.ntxId;
- // A tab that is not "a", "b" or "c" reads as "new".
+ // `order()` maps an unknown tab identifier to "new".
const known = [a.ntxId, b.ntxId, c.ntxId];
const order = () =>
ntxOrder(tm).map((ntxId) => (known.includes(ntxId) ? ntxId : "new"));