test(agent-hooks): update WSL JSON hook assertions

This commit is contained in:
Brennan Benson
2026-08-27 07:10:45 -07:00
parent a91ed1618c
commit 3ba328c811
@@ -280,7 +280,10 @@ describe('Codex WSL runtime hook install', () => {
expect(script).toContain('is_wsl_runtime()')
expect(script).toContain('WSL_DISTRO_NAME')
expect(script).toContain('windows_curl=$(command -v curl.exe 2>/dev/null || true)')
expect(script).toContain('--data-urlencode "payload@-"')
expect(script).toContain('-H "Content-Type: application/json"')
expect(script).toContain('-H "X-Orca-Agent-Hook-Meta-Encoding: base64"')
expect(script).toContain('--data-binary @-')
expect(script).not.toContain('--data-urlencode "payload@-"')
expect(script).toContain('if post_codex_hook curl >/dev/null 2>&1; then')
expect(script).toContain('post_codex_hook "$windows_curl" 3 5 >/dev/null 2>&1 || true')
})