11// Reply payload tests cover reply target parsing, media payloads, and approval metadata.
22import { describe , expect , it , vi } from "vitest" ;
33import {
4- buildPairingQrReplyChannelData ,
54 buildTtsSupplementMediaPayload ,
65 countOutboundMedia ,
76 createNormalizedOutboundDeliverer ,
@@ -16,7 +15,6 @@ import {
1615 markReplyPayloadAsTtsSupplement ,
1716 normalizeOutboundReplyPayload ,
1817 resolveOutboundMediaUrls ,
19- readPairingQrReplyChannelData ,
2018 resolveSendableOutboundReplyParts ,
2119 resolveTextChunksWithFallback ,
2220 sendTextMediaPayload ,
@@ -482,33 +480,6 @@ describe("hasOutboundReplyContent", () => {
482480 } ) ;
483481} ) ;
484482
485- describe ( "pairing QR reply channel data" , ( ) => {
486- it ( "builds and reads the typed pairing QR payload metadata" , ( ) => {
487- const channelData = buildPairingQrReplyChannelData ( {
488- setupCode : "setup-code" ,
489- expiresAtMs : 1_800_000_000_000 ,
490- } ) ;
491-
492- expect ( readPairingQrReplyChannelData ( { channelData } ) ) . toEqual ( {
493- setupCode : "setup-code" ,
494- expiresAtMs : 1_800_000_000_000 ,
495- } ) ;
496- } ) ;
497-
498- it ( "ignores malformed pairing QR metadata" , ( ) => {
499- expect (
500- readPairingQrReplyChannelData ( {
501- channelData : {
502- openclawPairingQr : {
503- setupCode : "" ,
504- expiresAtMs : 0 ,
505- } ,
506- } ,
507- } ) ,
508- ) . toBeUndefined ( ) ;
509- } ) ;
510- } ) ;
511-
512483describe ( "resolveSendableOutboundReplyParts" , ( ) => {
513484 it ( "normalizes missing text and trims media urls" , ( ) => {
514485 expect (
0 commit comments