From 2d1ef7b6b42397da6bb3c3340bb1afa8ebc54499 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 8 May 2026 08:03:31 +0100 Subject: [PATCH] test: clarify channel config save request assertion --- ui/src/ui/app-channels.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/src/ui/app-channels.test.ts b/ui/src/ui/app-channels.test.ts index 53e58f15d8e..16847e97d27 100644 --- a/ui/src/ui/app-channels.test.ts +++ b/ui/src/ui/app-channels.test.ts @@ -14,8 +14,11 @@ type ChannelsActionHostForTest = ConfigState & }; function createChannelsSnapshot(name = "saved"): ChannelsStatusSnapshot { - const nostrAccount = { accountId: "default", configured: true, profile: { name } } as - ChannelsStatusSnapshot["channelAccounts"][string][number]; + const nostrAccount = { + accountId: "default", + configured: true, + profile: { name }, + } as ChannelsStatusSnapshot["channelAccounts"][string][number]; return { ts: Date.now(), channelOrder: ["nostr"], @@ -131,6 +134,6 @@ describe("channel config actions", () => { expect(host.configFormDirty).toBe(true); expect(host.configForm).toEqual({ gateway: { mode: "local" } }); expect(host.configSnapshot?.config).toEqual({ gateway: { mode: "remote" } }); - expect(request.mock.calls.some(([method]) => method === "channels.status")).toBe(false); + expect(request.mock.calls.map(([method]) => method)).not.toContain("channels.status"); }); });