Skip to content

Commit 7aaef74

Browse files
committed
test: preserve raw telegram config fixture
1 parent 1e21c6e commit 7aaef74

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎extensions/telegram/src/bot.test.ts‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5571,13 +5571,15 @@ describe("createTelegramBot", () => {
55715571
token: "tok",
55725572
config: startupConfig,
55735573
});
5574-
mockTelegramConfig(
5575-
{
5576-
dmPolicy: "pairing",
5577-
botToken: { source: "env", provider: "default", id: "TELEGRAM_BOT_TOKEN" },
5574+
loadConfig.mockReturnValue({
5575+
commands: { native: true },
5576+
channels: {
5577+
telegram: {
5578+
dmPolicy: "pairing",
5579+
botToken: { source: "env", provider: "default", id: "TELEGRAM_BOT_TOKEN" },
5580+
},
55785581
},
5579-
{ commands: { native: true } },
5580-
);
5582+
});
55815583
readChannelAllowFromStore.mockResolvedValueOnce(["12345"]);
55825584

55835585
const handler = commandSpy.mock.calls.find((call) => call[0] === "status")?.[1] as

0 commit comments

Comments
 (0)