feat: expand advanced widget experiences
This commit is contained in:
1 parent
9437d211c8
commit
c099a8eef6
119 files changed
+3624
-844
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
import { isBeszelGridMetricVisible } from "./display";
|
||||
|
||||
describe("Beszel grid metric visibility", () => {
|
||||
test("honors compact configuration", () => {
|
||||
expect(isBeszelGridMetricVisible(false, false)).toBe(false);
|
||||
expect(isBeszelGridMetricVisible(true, false)).toBe(true);
|
||||
});
|
||||
|
||||
test("forces configured-off metrics in advanced mode when applicable", () => {
|
||||
expect(isBeszelGridMetricVisible(false, true)).toBe(true);
|
||||
expect(isBeszelGridMetricVisible(false, true, false)).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user