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
custom task states: fix failing test
Adorian Doran43526cd12771
diff --git a/apps/client/src/widgets/type_widgets/text/config.spec.ts b/apps/client/src/widgets/type_widgets/text/config.spec.tsindex 956bdfc308..e075cfbaff 100644--- a/apps/client/src/widgets/type_widgets/text/config.spec.ts+++ b/apps/client/src/widgets/type_widgets/text/config.spec.ts@@ -11,6 +11,13 @@ vi.mock('../../../services/options.js', () => ({}}));+// buildConfig reads the `_taskStates` hidden subtree via Froca; stub it out+// since this test only covers language mapping.+vi.mock('../../../services/task_states.js', () => ({+ getTaskStateDefinitions: async () => [],+ openCustomTaskStateConfig: () => {}+}));+describe("CK config", () => {it("maps all languages correctly", async () => {const { buildConfig } = await import("./config.js");