test: dedupe startup log mock reads · openclaw/openclaw@d79d6b2
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -77,10 +77,9 @@ describe("gateway startup log", () => {
|
77 | 77 | isNixMode: false, |
78 | 78 | }); |
79 | 79 | |
80 | | -expect(info.mock.calls.at(0)?.[0]).toBe( |
81 | | -"agent model: openai-codex/gpt-5.5 (thinking=medium, fast=on)", |
82 | | -); |
83 | | -expect(stripAnsi(String(info.mock.calls.at(0)?.[1]?.consoleMessage))).toBe( |
| 80 | +const firstInfoCall = info.mock.calls[0]; |
| 81 | +expect(firstInfoCall?.[0]).toBe("agent model: openai-codex/gpt-5.5 (thinking=medium, fast=on)"); |
| 82 | +expect(stripAnsi(String(firstInfoCall?.[1]?.consoleMessage))).toBe( |
84 | 83 | "agent model: openai-codex/gpt-5.5 (thinking=medium, fast=on)", |
85 | 84 | ); |
86 | 85 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。