Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style(tabs): wrap the placement spec helper
matt wilkied85196d68431
diff --git a/apps/client/src/components/tab_manager.spec.ts b/apps/client/src/components/tab_manager.spec.tsindex a9fb0f9b5d..c7c06fb4e5 100644--- a/apps/client/src/components/tab_manager.spec.ts+++ b/apps/client/src/components/tab_manager.spec.ts@@ -63,7 +63,8 @@ describe("TabManager tab placement", () => {// A tab that is not "a", "b" or "c" reads as "new".const known = [a.ntxId, b.ntxId, c.ntxId];- const order = () => ntxOrder(tm).map((ntxId) => (known.includes(ntxId) ? ntxId : "new"));+ const order = () =>+ ntxOrder(tm).map((ntxId) => (known.includes(ntxId) ? ntxId : "new"));// An empty note ID makes setNote() return early, so only the placement is exercised.await tm.openInNewTab("", null, false, "afterCurrent");