diff --git a/src/pairing/pairing-messages.test.ts b/src/pairing/pairing-messages.test.ts index d8994e88c9..d12be19c3a 100644 --- a/src/pairing/pairing-messages.test.ts +++ b/src/pairing/pairing-messages.test.ts @@ -52,7 +52,7 @@ describe("buildPairingReply", () => { expect(text).toContain(`Pairing code: ${testCase.code}`); // CLI commands should respect OPENCLAW_PROFILE when set (most tests run with isolated profile) const commandRe = new RegExp( - `(?:openclaw|openclaw) --profile isolated pairing approve ${testCase.channel} `, + `(?:openclaw|openclaw) --profile isolated pairing approve ${testCase.channel} ${testCase.code}`, ); expect(text).toMatch(commandRe); });