Skip to content

Commit 9b136d4

Browse files
committed
test(gateway): update client construction after rebase
1 parent 7db19c7 commit 9b136d4

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/core/gateway.test.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
type TargetSummary,
88
} from "@aws-sdk/client-bedrock-agentcore-control";
99
import { ResultTruncationError } from "../errors";
10+
import { createSilentLogger } from "../testing";
1011
import type { AwsClients } from "./types";
1112
import { GatewayClient } from "./gateway";
1213

@@ -23,9 +24,13 @@ function ordinary(targetId: string): TargetSummary {
2324
function 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

3136
describe("GatewayClient Connector facade", () => {

0 commit comments

Comments
 (0)