fix: address mobile dashboard review findings

This commit is contained in:
ajnart committed 2026-08-13 19:55:12 +02:00
1 parent 438f0d80eb
commit 6a2e7d0610
12 files changed
+107 -20

No files matched your search

@@ -0,0 +1,11 @@
import { describe, expect, test } from "vitest";
import { hasStaleIntegrationData } from "./query-status";
describe("Beszel query status", () => {
test("marks cached data stale after outer or per-integration failures", () => {
expect(hasStaleIntegrationData(true, [])).toBe(true);
expect(hasStaleIntegrationData(false, [{ error: "offline" }])).toBe(true);
expect(hasStaleIntegrationData(false, [])).toBe(false);
});
});