fix(energy): deliver prototype-aligned hydrogen board and acceptance fixes
ci/woodpecker/push/woodpecker Pipeline was successful

Co-authored-by: HiFox Agent <agents-noreply@hifox.com>
This commit is contained in:
kfluous
2026-09-03 22:27:23 +08:00
co-authored by HiFox Agent
parent 5eb38a4b05
commit 6c91a6694a
77 changed files with 30169 additions and 361 deletions
@@ -0,0 +1,16 @@
import assert from "node:assert/strict";
import test from "node:test";
import { devMockResponse } from "./dev-mock-api";
test("开发 mock 覆盖健康检查与氢能 v2 只读接口", () => {
for (const path of [
"/api/health",
"/api/energy/h2/v2/meta",
"/api/energy/h2/v2/overview",
"/api/energy/h2/v2/daily",
"/api/energy/h2/v2/daily-tree",
"/api/energy/h2/v2/drill",
]) assert.ok(devMockResponse(path), path);
assert.equal(devMockResponse("/api/unknown"), undefined);
});