test: tighten agent overlay empty assertions · openclaw/openclaw@3bbee22
shakkernerd
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2801,7 +2801,7 @@ describe("openai transport stream", () => {
|
2801 | 2801 | tools?: Array<{ function?: { parameters?: { properties?: Record<string, unknown> } } }>; |
2802 | 2802 | }; |
2803 | 2803 | |
2804 | | -expect(params.tools?.[0]?.function?.parameters?.properties?.forbidden).toEqual({}); |
| 2804 | +expect(params.tools?.[0]?.function?.parameters?.properties?.forbidden).toStrictEqual({}); |
2805 | 2805 | }); |
2806 | 2806 | |
2807 | 2807 | describe("Gemini thought_signature round-trip on OpenAI-compatible completions", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1738,7 +1738,7 @@ describe("applyExtraParamsToAgent", () => {
|
1738 | 1738 | void agent.streamFn?.(model, context, {}); |
1739 | 1739 | |
1740 | 1740 | expect(payloads).toHaveLength(1); |
1741 | | -expect(payloads[0]?.config).toEqual({}); |
| 1741 | +expect(payloads[0]?.config).toStrictEqual({}); |
1742 | 1742 | }); |
1743 | 1743 | |
1744 | 1744 | it("preserves explicit Gemma 4 thinking level when thinkingBudget=0", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -48,7 +48,7 @@ describe("GPT-5 prompt overlay runtime contract", () => {
|
48 | 48 | }); |
49 | 49 | |
50 | 50 | expect(contribution?.stablePrefix).toContain("<persona_latch>"); |
51 | | -expect(contribution?.sectionOverrides).toEqual({}); |
| 51 | +expect(contribution?.sectionOverrides).toStrictEqual({}); |
52 | 52 | }); |
53 | 53 | |
54 | 54 | it("scopes OpenAI plugin personality fallback to OpenAI-family GPT-5 providers", () => { |
@@ -64,7 +64,7 @@ describe("GPT-5 prompt overlay runtime contract", () => {
|
64 | 64 | }); |
65 | 65 | |
66 | 66 | expect(openAiContribution?.stablePrefix).toContain("<persona_latch>"); |
67 | | -expect(openAiContribution?.sectionOverrides).toEqual({}); |
| 67 | +expect(openAiContribution?.sectionOverrides).toStrictEqual({}); |
68 | 68 | expect(nonOpenAiContribution?.stablePrefix).toContain("<persona_latch>"); |
69 | 69 | expect(nonOpenAiContribution?.sectionOverrides?.interaction_style).toContain( |
70 | 70 | "This is a live chat, not a memo.", |
@@ -79,7 +79,7 @@ describe("GPT-5 prompt overlay runtime contract", () => {
|
79 | 79 | }); |
80 | 80 | |
81 | 81 | expect(contribution?.stablePrefix).toContain("<persona_latch>"); |
82 | | -expect(contribution?.sectionOverrides).toEqual({}); |
| 82 | +expect(contribution?.sectionOverrides).toStrictEqual({}); |
83 | 83 | }); |
84 | 84 | |
85 | 85 | it("does not apply GPT-5 overlays to non-GPT-5 models", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。