test: tighten helper empty object assertions · openclaw/openclaw@bcec18d
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -59,7 +59,7 @@ describe("infra store", () => {
|
59 | 59 | |
60 | 60 | const result = readSessionStoreJson5(storePath); |
61 | 61 | expect(result.ok).toBe(false); |
62 | | -expect(result.store).toEqual({}); |
| 62 | +expect(result.store).toStrictEqual({}); |
63 | 63 | }); |
64 | 64 | }); |
65 | 65 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ describe("createChannelTestPluginBase", () => {
|
11 | 11 | expect(base.meta.docsPath).toBe("/channels/demo-channel"); |
12 | 12 | expect(base.capabilities.chatTypes).toEqual(["direct"]); |
13 | 13 | expect(base.config.listAccountIds(cfg)).toEqual(["default"]); |
14 | | -expect(base.config.resolveAccount(cfg)).toEqual({}); |
| 14 | +expect(base.config.resolveAccount(cfg)).toStrictEqual({}); |
15 | 15 | }); |
16 | 16 | |
17 | 17 | it("honors config and metadata overrides", async () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,7 +42,7 @@ describe("loadVitestExperimentalConfig", () => {
|
42 | 42 | }); |
43 | 43 | |
44 | 44 | it("disables the filesystem module cache by default on Windows", () => { |
45 | | -expect(loadVitestExperimentalConfig({}, "win32")).toEqual({}); |
| 45 | +expect(loadVitestExperimentalConfig({}, "win32")).toStrictEqual({}); |
46 | 46 | }); |
47 | 47 | |
48 | 48 | it("still allows enabling the filesystem module cache explicitly on Windows", () => { |
@@ -68,7 +68,7 @@ describe("loadVitestExperimentalConfig", () => {
|
68 | 68 | }, |
69 | 69 | "linux", |
70 | 70 | ), |
71 | | -).toEqual({}); |
| 71 | +).toStrictEqual({}); |
72 | 72 | }); |
73 | 73 | |
74 | 74 | it("enables import timing output and import breakdown reporting", () => { |
@@ -90,6 +90,6 @@ describe("loadVitestExperimentalConfig", () => {
|
90 | 90 | }); |
91 | 91 | |
92 | 92 | it("uses RUNNER_OS to detect Windows even when the platform is not win32", () => { |
93 | | -expect(loadVitestExperimentalConfig({ RUNNER_OS: "Windows" }, "linux")).toEqual({}); |
| 93 | +expect(loadVitestExperimentalConfig({ RUNNER_OS: "Windows" }, "linux")).toStrictEqual({}); |
94 | 94 | }); |
95 | 95 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。