From ff3bf53938eb690e47c247f2d30e814d841eec07 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 10:52:37 +0100 Subject: [PATCH] test: tighten qqbot setup config assertions --- extensions/qqbot/src/config.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/qqbot/src/config.test.ts b/extensions/qqbot/src/config.test.ts index 2043c413416..8ae93b51a1c 100644 --- a/extensions/qqbot/src/config.test.ts +++ b/extensions/qqbot/src/config.test.ts @@ -278,10 +278,12 @@ describe("qqbot config", () => { return (value as Record)[key]; }, next) as Record | undefined; - expect(accountConfig).toMatchObject({ + expect(accountConfig).toStrictEqual({ enabled: true, + allowFrom: ["*"], appId: "102905186", clientSecret: "Oi2Mg1Mh2Ni3:Pl7TpBXuHe1OmAYwKi7W", + clientSecretFile: undefined, }); }); @@ -333,7 +335,7 @@ describe("qqbot config", () => { accountId: DEFAULT_ACCOUNT_ID, input, } as never), - ).toMatchObject({ + ).toStrictEqual({ channels: { qqbot: { enabled: true, @@ -348,7 +350,7 @@ describe("qqbot config", () => { accountId: DEFAULT_ACCOUNT_ID, input, } as never), - ).toMatchObject({ + ).toStrictEqual({ channels: { qqbot: { enabled: true,