test: tighten command empty result assertions · openclaw/openclaw@a9d168c
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -39,7 +39,7 @@ describe("resolveMessageSecretScope", () => {
|
39 | 39 | resolveMessageSecretScope({ |
40 | 40 | targets: ["signal:one", "imessage:two"], |
41 | 41 | }), |
42 | | -).toEqual({}); |
| 42 | +).toStrictEqual({}); |
43 | 43 | }); |
44 | 44 | |
45 | 45 | it("uses fallback channel/account when direct inputs are missing", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1034,7 +1034,7 @@ describe("applyAuthChoice", () => {
|
1034 | 1034 | expect(resolveAgentModelPrimaryValue(result.config.agents?.defaults?.model)).toBe( |
1035 | 1035 | existingPrimary, |
1036 | 1036 | ); |
1037 | | -expect(result.config.agents?.defaults?.models?.["openrouter/auto"]).toEqual({}); |
| 1037 | +expect(result.config.agents?.defaults?.models?.["openrouter/auto"]).toStrictEqual({}); |
1038 | 1038 | expect(runProviderModelSelectedHook).not.toHaveBeenCalled(); |
1039 | 1039 | expect(note).toHaveBeenCalledWith( |
1040 | 1040 | "Kept existing default model anthropic/claude-opus-4-6; openrouter/auto is available.", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -225,7 +225,7 @@ describe("maybeRepairPluginRegistryState", () => {
|
225 | 225 | prompter: { shouldRepair: true }, |
226 | 226 | }); |
227 | 227 | |
228 | | -expect(nextConfig).toEqual({}); |
| 228 | +expect(nextConfig).toStrictEqual({}); |
229 | 229 | await expect(readPersistedInstalledPluginIndex({ stateDir })).resolves.toMatchObject({ |
230 | 230 | refreshReason: "migration", |
231 | 231 | plugins: [ |
@@ -248,7 +248,7 @@ describe("maybeRepairPluginRegistryState", () => {
|
248 | 248 | prompter: { shouldRepair: true }, |
249 | 249 | }); |
250 | 250 | |
251 | | -expect(nextConfig).toEqual({}); |
| 251 | +expect(nextConfig).toStrictEqual({}); |
252 | 252 | expect(vi.mocked(note).mock.calls.join("\n")).toContain(DISABLE_PLUGIN_REGISTRY_MIGRATION_ENV); |
253 | 253 | }); |
254 | 254 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。