@@ -447,7 +447,7 @@ describe("message tool secret scoping", () => {
447447 expect ( input ?. sourceReplyDeliveryMode ) . toBe ( "message_tool_only" ) ;
448448 expect ( input ?. toolContext ?. currentChannelProvider ) . toBe ( "telegram" ) ;
449449 expect ( input ?. toolContext ?. currentChannelId ) . toBe ( "-5150615830" ) ;
450- expect ( input ?. params ) . toEqual ( { action : "send" , message : "hi" } ) ;
450+ expect ( input ?. params ) . toMatchObject ( { action : "send" , message : "hi" } ) ;
451451
452452 const secretResolveCall = latestSecretResolveCall ( ) ;
453453 expect ( Array . from ( secretResolveCall . targetIds ?? [ ] ) ) . toEqual ( [ "channels.telegram.botToken" ] ) ;
@@ -475,7 +475,7 @@ describe("message tool secret scoping", () => {
475475 expect ( input ?. sourceReplyDeliveryMode ) . toBe ( "message_tool_only" ) ;
476476 expect ( input ?. toolContext ?. currentChannelProvider ) . toBe ( "discord" ) ;
477477 expect ( input ?. toolContext ?. currentChannelId ) . toBe ( "user:123456789" ) ;
478- expect ( input ?. params ) . toEqual ( { action : "send" , message : "hi" } ) ;
478+ expect ( input ?. params ) . toMatchObject ( { action : "send" , message : "hi" } ) ;
479479
480480 const secretResolveCall = latestSecretResolveCall ( ) ;
481481 expect ( Array . from ( secretResolveCall . targetIds ?? [ ] ) ) . toEqual ( [ "channels.discord.token" ] ) ;
@@ -503,7 +503,7 @@ describe("message tool secret scoping", () => {
503503 expect ( input ?. sourceReplyDeliveryMode ) . toBe ( "message_tool_only" ) ;
504504 expect ( input ?. toolContext ?. currentChannelProvider ) . toBe ( "msteams" ) ;
505505 expect ( input ?. toolContext ?. currentChannelId ) . toBe ( "user:user-1" ) ;
506- expect ( input ?. params ) . toEqual ( { action : "send" , message : "hi" } ) ;
506+ expect ( input ?. params ) . toMatchObject ( { action : "send" , message : "hi" } ) ;
507507
508508 const secretResolveCall = latestSecretResolveCall ( ) ;
509509 expect ( Array . from ( secretResolveCall . targetIds ?? [ ] ) ) . toEqual ( [ "channels.msteams.appPassword" ] ) ;
@@ -531,7 +531,7 @@ describe("message tool secret scoping", () => {
531531 expect ( input ?. sourceReplyDeliveryMode ) . toBe ( "message_tool_only" ) ;
532532 expect ( input ?. toolContext ?. currentChannelProvider ) . toBe ( "telegram" ) ;
533533 expect ( input ?. toolContext ?. currentChannelId ) . toBe ( "123456789" ) ;
534- expect ( input ?. params ) . toEqual ( { action : "send" , message : "hi" } ) ;
534+ expect ( input ?. params ) . toMatchObject ( { action : "send" , message : "hi" } ) ;
535535
536536 const secretResolveCall = latestSecretResolveCall ( ) ;
537537 expect ( Array . from ( secretResolveCall . targetIds ?? [ ] ) ) . toEqual ( [ "channels.telegram.botToken" ] ) ;
0 commit comments