test: tighten openai codex device code note assertion · openclaw/openclaw@3c13ded
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -345,13 +345,15 @@ describe("openai codex provider", () => {
|
345 | 345 | const { note } = await runRemoteDeviceCodeAuthFlow(); |
346 | 346 | |
347 | 347 | expect(note).toHaveBeenCalledWith( |
348 | | -expect.stringContaining("Code: CODE-12345"), |
349 | | -"OpenAI Codex device code", |
350 | | -); |
351 | | -expect(note).not.toHaveBeenCalledWith( |
352 | | -expect.stringContaining("Code: [shown on the local device only]"), |
| 348 | +[ |
| 349 | +"Open this URL in your LOCAL browser and enter the code below.", |
| 350 | +"URL: https://auth.openai.com/codex/device", |
| 351 | +"Code: CODE-12345", |
| 352 | +"Code expires in 15 minutes. Never share it.", |
| 353 | +].join("\n"), |
353 | 354 | "OpenAI Codex device code", |
354 | 355 | ); |
| 356 | +expect(note).toHaveBeenCalledTimes(1); |
355 | 357 | }); |
356 | 358 | |
357 | 359 | it("does not write the device pairing code to the runtime log in remote mode", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。