Skip to content

Commit 088949c

Browse files
committed
test(channels): preserve literal types in owner state fixtures
1 parent 4691333 commit 088949c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎src/channels/plugins/configured-state.test.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Configured state tests cover channel plugin configured-state detection and summaries.
22
import { createRequire } from "node:module";
33
import { describe, expect, it } from "vitest";
4+
import type { OpenClawConfig } from "../../config/types.openclaw.js";
45
import {
56
hasBundledChannelConfiguredState,
67
listBundledChannelIdsWithConfiguredState,
@@ -161,7 +162,12 @@ describe("bundled channel configured-state metadata", () => {
161162
cfg: { channels: { "nextcloud-talk": { baseUrl: "https://cloud.example.test" } } },
162163
env: { NEXTCLOUD_TALK_BOT_SECRET: "secret" },
163164
},
164-
])("accepts the owner-specific $name contract", ({ channelId, cfg, env }) => {
165+
] satisfies Array<{
166+
name: string;
167+
channelId: string;
168+
cfg: OpenClawConfig;
169+
env: NodeJS.ProcessEnv;
170+
}>)("accepts the owner-specific $name contract", ({ channelId, cfg, env }) => {
165171
expect(hasBundledChannelConfiguredState({ channelId, cfg, env })).toBe(true);
166172
});
167173

0 commit comments

Comments
 (0)