Skip to content

Build your personal knowledge base with Trilium Notes

test(desktop): fix broken test after behavior change

Elian Dorancbbc1facbb86
diff --git a/apps/desktop/src/services/window.spec.ts b/apps/desktop/src/services/window.spec.ts
index 771073b00a..0badf5b25a 100644
--- a/apps/desktop/src/services/window.spec.ts
+++ b/apps/desktop/src/services/window.spec.ts
@@ -307,12 +307,12 @@ describe("window service", () => {
expect(opts.backgroundMaterial).toBe("auto");
});
- it("applies Linux transparent effect when background effects enabled", async () => {
+ it("does not apply Linux transparent effect when background effects enabled", async () => {
state.optionBools = { backgroundEffects: true };
await windowService.createMainWindow();
const opts = state.windows[state.windows.length - 1].opts as Record<string, unknown>;
expect(opts.frame).toBe(false);
- expect(opts.transparent).toBe(true);
+ expect(opts.transparent).toBe(false);
});
it("keeps native title bar when option enabled", async () => {