Skip to content

Build your personal knowledge base with Trilium Notes

test(share): fix glob cast in share_link spec (#10589)

Elian Doran422c6e0156e2
diff --git a/apps/client/src/services/share_link.spec.ts b/apps/client/src/services/share_link.spec.ts
index a14664de37..b19cde5e85 100644
--- a/apps/client/src/services/share_link.spec.ts
+++ b/apps/client/src/services/share_link.spec.ts
@@ -10,7 +10,7 @@ describe("buildShareLink", () => {
});
function setGlob(patch: Record<string, unknown>) {
- window.glob = { ...patch } as typeof window.glob;
+ window.glob = { ...patch } as unknown as typeof window.glob;
}
it("uses the configured sync server host when set (regardless of the local origin)", () => {