test(pairing): update test to expect actual code instead of placeholder

This commit is contained in:
Echo Ito
2026-02-11 07:47:04 +08:00
committed by Gustavo Madeira Santana
parent 2daf299ba7
commit 651195005a

View File

@@ -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} <code>`,
`(?:openclaw|openclaw) --profile isolated pairing approve ${testCase.channel} ${testCase.code}`,
);
expect(text).toMatch(commandRe);
});