feat: implement LiveTemperatureThresholdChart and add visibility and refresh policy unit tests

This commit is contained in:
2569718930@qq.com
2026-05-26 06:13:18 +08:00
parent 636a81d6df
commit 3a82c11e78
3 changed files with 116 additions and 35 deletions
@@ -38,4 +38,10 @@ export function runTests() {
!chartSource.includes("window.setInterval"),
"selected city detail chart should be on-demand and use model-layer cache instead of 60-second polling",
);
assert(
chartSource.includes("_hourlyRequestCache") &&
chartSource.includes("seedHourlyForecastFromRow") &&
chartSource.includes("setHourly(seedHourlyForecastFromRow(row))"),
"terminal charts should render from row data immediately and dedupe concurrent city detail requests",
);
}