Publish curated Unraid-AppOps-Gateway source from 034c9f844d2455850ba37b31379b7edaa786583e
This commit is contained in:
1 parent
c61fbfd87f
commit
1a54836efc
101 files changed
+4973
-1298
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
import { metricRefreshInterval } from "../lib/systemLoadChartView.ts";
|
||||
|
||||
const source = readFileSync(new URL("./Overview.tsx", import.meta.url), "utf8");
|
||||
const appDetailSource = readFileSync(new URL("./AppDetail.tsx", import.meta.url), "utf8");
|
||||
@@ -12,7 +13,6 @@ test("overview uses live statistics instead of hardcoded chart data", () => {
|
||||
assert.match(source, /buildSystemLoadChartData/);
|
||||
assert.match(systemLoadChartSource, /cpuHistory/);
|
||||
assert.match(systemLoadChartSource, /ramHistory/);
|
||||
assert.match(systemLoadChartSource, /Vlakke trend uit huidige live sample/);
|
||||
});
|
||||
|
||||
test("overview does not show setup-complete cards when there are no setup problems", () => {
|
||||
@@ -28,7 +28,8 @@ test("overview uses independent live queries so one failed source does not blank
|
||||
});
|
||||
|
||||
test("overview refreshes fast metrics separately from connector-heavy intelligence", () => {
|
||||
assert.match(source, /statistics-summary[\s\S]*refetchInterval: 10_000/);
|
||||
assert.equal(metricRefreshInterval("visible"), 5_000);
|
||||
assert.equal(metricRefreshInterval("hidden"), false);
|
||||
assert.match(source, /system-summary[\s\S]*refetchInterval: 10_000/);
|
||||
assert.match(source, /safety-dashboard[\s\S]*refetchInterval: 60_000/);
|
||||
assert.match(source, /storage-summary[\s\S]*refetchInterval: 60_000/);
|
||||
|
||||
Reference in new issue
Block a user