Skip to content

Build your personal knowledge base with Trilium Notes

test(client): fix stale KaTeX renderMathInElement assertion

Elian Doran51f848cd4609
diff --git a/apps/client/src/services/content_renderer_text.spec.ts b/apps/client/src/services/content_renderer_text.spec.ts
index 72c4ed1e77..eb27a4deba 100644
--- a/apps/client/src/services/content_renderer_text.spec.ts
+++ b/apps/client/src/services/content_renderer_text.spec.ts
@@ -200,7 +200,7 @@ describe("Text content renderer", () => {
// The conditional KaTeX auto-render branch ran: it was invoked exactly once
// with the rendered content element ($renderedContent[0]) and the trust flag.
expect(renderMathInElementSpy).toHaveBeenCalledTimes(1);
- expect(renderMathInElementSpy).toHaveBeenCalledWith(contentEl, { trust: true });
+ expect(renderMathInElementSpy).toHaveBeenCalledWith(contentEl, { trust: true, throwOnError: false });
});
it("does not invoke KaTeX inline rendering when no math-tex spans are present", async () => {