test: tighten qqbot setup config assertions · openclaw/openclaw@ff3bf53
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -278,10 +278,12 @@ describe("qqbot config", () => {
|
278 | 278 | return (value as Record<string, unknown>)[key]; |
279 | 279 | }, next) as Record<string, unknown> | undefined; |
280 | 280 | |
281 | | -expect(accountConfig).toMatchObject({ |
| 281 | +expect(accountConfig).toStrictEqual({ |
282 | 282 | enabled: true, |
| 283 | +allowFrom: ["*"], |
283 | 284 | appId: "102905186", |
284 | 285 | clientSecret: "Oi2Mg1Mh2Ni3:Pl7TpBXuHe1OmAYwKi7W", |
| 286 | +clientSecretFile: undefined, |
285 | 287 | }); |
286 | 288 | }); |
287 | 289 | |
@@ -333,7 +335,7 @@ describe("qqbot config", () => {
|
333 | 335 | accountId: DEFAULT_ACCOUNT_ID, |
334 | 336 | input, |
335 | 337 | } as never), |
336 | | -).toMatchObject({ |
| 338 | +).toStrictEqual({ |
337 | 339 | channels: { |
338 | 340 | qqbot: { |
339 | 341 | enabled: true, |
@@ -348,7 +350,7 @@ describe("qqbot config", () => {
|
348 | 350 | accountId: DEFAULT_ACCOUNT_ID, |
349 | 351 | input, |
350 | 352 | } as never), |
351 | | -).toMatchObject({ |
| 353 | +).toStrictEqual({ |
352 | 354 | channels: { |
353 | 355 | qqbot: { |
354 | 356 | enabled: true, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。