From e0a8a41247c4a521de226dd2421824d1f27d2281 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 12 Apr 2026 04:11:11 +0100 Subject: [PATCH] fix(secrets): narrow inactive variant test helper types --- .../runtime-channel-inactive-variants.test-support.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/secrets/runtime-channel-inactive-variants.test-support.ts b/src/secrets/runtime-channel-inactive-variants.test-support.ts index 1786ed928a5..83647754718 100644 --- a/src/secrets/runtime-channel-inactive-variants.test-support.ts +++ b/src/secrets/runtime-channel-inactive-variants.test-support.ts @@ -13,15 +13,19 @@ if ( throw new Error("Missing channel secret contract api"); } +const googleChatAssignments = googleChatSecrets.collectRuntimeConfigAssignments; +const ircAssignments = ircSecrets.collectRuntimeConfigAssignments; +const slackAssignments = slackSecrets.collectRuntimeConfigAssignments; + function resolveAssignments(id: string) { if (id === "irc") { - return ircSecrets.collectRuntimeConfigAssignments; + return ircAssignments; } if (id === "slack") { - return slackSecrets.collectRuntimeConfigAssignments; + return slackAssignments; } if (id === "googlechat") { - return googleChatSecrets.collectRuntimeConfigAssignments; + return googleChatAssignments; } return undefined; }