test: tighten command config cleanup assertions · openclaw/openclaw@1b60d4f
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -455,7 +455,7 @@ describe("channels command", () => {
|
455 | 455 | |
456 | 456 | const next = await addAlertsTelegramAccount("alerts-token"); |
457 | 457 | expect(next.channels?.telegram?.enabled).toBe(true); |
458 | | -expect(next.channels?.telegram?.accounts?.default).toEqual({}); |
| 458 | +expect(next.channels?.telegram?.accounts?.default).toStrictEqual({}); |
459 | 459 | expect(next.channels?.telegram?.accounts?.alerts?.botToken).toBe("alerts-token"); |
460 | 460 | }); |
461 | 461 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,6 +29,6 @@ describe("doctor config analysis helpers", () => {
|
29 | 29 | } as never); |
30 | 30 | expect(result.removed).toContain("unexpected"); |
31 | 31 | expect((result.config as Record<string, unknown>).unexpected).toBeUndefined(); |
32 | | -expect((result.config as Record<string, unknown>).hooks).toEqual({}); |
| 32 | +expect((result.config as Record<string, unknown>).hooks).toStrictEqual({}); |
33 | 33 | }); |
34 | 34 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -351,7 +351,7 @@ describe("legacy migrate sandbox scope aliases", () => {
|
351 | 351 | "Removed agents.list.0.agentRuntime; runtime is now provider/model scoped.", |
352 | 352 | ]), |
353 | 353 | ); |
354 | | -expect(res.config?.agents?.defaults).toEqual({}); |
| 354 | +expect(res.config?.agents?.defaults).toStrictEqual({}); |
355 | 355 | expect(res.config?.agents?.list?.[0]).toEqual({ |
356 | 356 | id: "reviewer", |
357 | 357 | }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -264,7 +264,7 @@ describe("doctor stale plugin config helpers", () => {
|
264 | 264 | }, |
265 | 265 | }); |
266 | 266 | expect(result.config.agents?.defaults?.heartbeat).toEqual({ every: "30m" }); |
267 | | -expect(result.config.agents?.list?.[0]?.heartbeat).toEqual({}); |
| 267 | +expect(result.config.agents?.list?.[0]?.heartbeat).toStrictEqual({}); |
268 | 268 | expect(result.config.agents?.list?.[1]?.heartbeat).toEqual({ target: "telegram" }); |
269 | 269 | }); |
270 | 270 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。