File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 type TargetSummary ,
88} from "@aws-sdk/client-bedrock-agentcore-control" ;
99import { ResultTruncationError } from "../errors" ;
10+ import { createSilentLogger } from "../testing" ;
1011import type { AwsClients } from "./types" ;
1112import { GatewayClient } from "./gateway" ;
1213
@@ -23,9 +24,13 @@ function ordinary(targetId: string): TargetSummary {
2324function gatewayClient (
2425 send : ( command : GetGatewayTargetCommand | ListGatewayTargetsCommand ) => Promise < unknown > ,
2526) : GatewayClient {
26- return new GatewayClient ( {
27- control : ( ) => ( { send : mock ( send ) } ) as never ,
28- } as unknown as AwsClients ) ;
27+ return new GatewayClient (
28+ {
29+ control : ( ) => ( { send : mock ( send ) } ) as never ,
30+ } as unknown as AwsClients ,
31+ globalThis . fetch ,
32+ createSilentLogger ( ) ,
33+ ) ;
2934}
3035
3136describe ( "GatewayClient Connector facade" , ( ) => {
You can’t perform that action at this time.
0 commit comments