refactor(channels): narrow status helper exports · openclaw/openclaw@30955d3
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Status read-model tests cover channel status projection from runtime state. |
2 | 2 | import { describe, expect, it } from "vitest"; |
3 | 3 | import { |
4 | | -findRuntimeChannelAccount, |
5 | 4 | getRuntimeChannelAccounts, |
6 | 5 | hasRuntimeCredentialAvailable, |
7 | 6 | markConfiguredUnavailableCredentialStatusesAvailable, |
@@ -63,10 +62,6 @@ describe("channel status read model", () => {
|
63 | 62 | channelId: "discord", |
64 | 63 | }); |
65 | 64 | |
66 | | -expect(findRuntimeChannelAccount({ liveAccounts, accountId: "default" })).toStrictEqual({ |
67 | | -name: "default", |
68 | | -running: true, |
69 | | -}); |
70 | 65 | expect(hasRuntimeCredentialAvailable({ liveAccounts, accountId: "default" })).toBe(true); |
71 | 66 | }); |
72 | 67 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。