






















@@ -1,4 +1,8 @@
11import { describe, expect, it } from "vitest";
2+import {
3+baseStatusExpectedUpdateChannelInfo,
4+baseStatusExpectedUpdateChannelLabel,
5+} from "../status.test-support.ts";
26import {
37buildStatusGatewaySurfaceValues,
48buildStatusOverviewRows,
@@ -78,12 +82,8 @@ describe("status-all format", () => {
7882} as never,
7983}),
8084).toEqual({
81-channelInfo: {
82-channel: "stable",
83-source: "config",
84-label: "stable (config)",
85-},
86-channelLabel: "stable (config)",
85+channelInfo: baseStatusExpectedUpdateChannelInfo,
86+channelLabel: baseStatusExpectedUpdateChannelLabel,
8787gitLabel: "main · tag v1.2.3",
8888updateLine: `git main · ↔ origin/main · behind 2 · npm update ${newerRegistryVersion}`,
8989updateAvailable: true,
@@ -374,7 +374,7 @@ describe("status-all format", () => {
374374{ Item: "Version", Value: "1.0.0" },
375375{ Item: "Dashboard", Value: "http://127.0.0.1:18789/" },
376376{ Item: "Tailscale exposure", Value: "serve · box.tail.ts.net · https://box.tail.ts.net" },
377-{ Item: "Channel", Value: "stable (config)" },
377+{ Item: "Channel", Value: baseStatusExpectedUpdateChannelLabel },
378378{ Item: "Git", Value: "main · tag v1.2.3" },
379379{ Item: "Update", Value: "available · custom update" },
380380{
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。