Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

563 B
Raw Blame
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);
  });
});