test: tighten codex hook relay assertions · openclaw/openclaw@64370ba
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -112,8 +112,8 @@ describe("Codex native hook relay config", () => {
|
112 | 112 | events: ["pre_tool_use", "post_tool_use"], |
113 | 113 | }); |
114 | 114 | |
115 | | -expect(config["hooks.PreToolUse"]).toEqual([expect.objectContaining({ matcher: null })]); |
116 | | -expect(config["hooks.PostToolUse"]).toEqual([expect.objectContaining({ matcher: null })]); |
| 115 | +expect((config["hooks.PreToolUse"] as Array<{ matcher: unknown }>)[0]?.matcher).toBeNull(); |
| 116 | +expect((config["hooks.PostToolUse"] as Array<{ matcher: unknown }>)[0]?.matcher).toBeNull(); |
117 | 117 | }); |
118 | 118 | |
119 | 119 | it("builds deterministic clearing config when the relay is disabled", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。