@@ -138,7 +138,7 @@ describe("Codex app-server approval bridge", () => {
|
138 | 138 | const requestPayload = gatewayRequestPayload(); |
139 | 139 | expect(String(requestPayload.description)).toContain("Command: pnpm test extensions/codex"); |
140 | 140 | expect(String(requestPayload.description)).not.toContain("bash -lc"); |
141 | | -expect(findApprovalEvent(params, { command: "pnpm test extensions/codex" })).toBeDefined(); |
| 141 | +findApprovalEvent(params, { command: "pnpm test extensions/codex" }); |
142 | 142 | }); |
143 | 143 | |
144 | 144 | it("describes command approval permission and policy amendments", async () => { |
@@ -306,7 +306,7 @@ describe("Codex app-server approval bridge", () => {
|
306 | 306 | expect(gatewayRequestPayload().description).toBe( |
307 | 307 | "Command: prefix VISIBLE suffix\nSession: agent:main:session-1", |
308 | 308 | ); |
309 | | -expect(findApprovalEvent(params, { command: "prefix VISIBLE suffix" })).toBeDefined(); |
| 309 | +findApprovalEvent(params, { command: "prefix VISIBLE suffix" }); |
310 | 310 | }); |
311 | 311 | |
312 | 312 | it("strips bidi and invisible formatting controls from command previews", async () => { |
@@ -331,7 +331,7 @@ describe("Codex app-server approval bridge", () => {
|
331 | 331 | expect(gatewayRequestPayload().description).toBe( |
332 | 332 | "Command: echo safe cod.exe hidden done\nSession: agent:main:session-1", |
333 | 333 | ); |
334 | | -expect(findApprovalEvent(params, { command: "echo safe cod.exe hidden done" })).toBeDefined(); |
| 334 | +findApprovalEvent(params, { command: "echo safe cod.exe hidden done" }); |
335 | 335 | }); |
336 | 336 | |
337 | 337 | it("marks oversized unsafe command previews as omitted", async () => { |
|