Skip to content

Commit a4f506a

Browse files
committed
test(client-sts): fix defaultRoleAssumers.spec.ts
1 parent 2079a1b commit a4f506a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clients/client-sts/test/defaultRoleAssumers.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ import type { AssumeRoleCommandInput } from "../src/commands/AssumeRoleCommand";
2323
import { AssumeRoleWithWebIdentityCommandInput } from "../src/commands/AssumeRoleWithWebIdentityCommand";
2424
import { getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity } from "../src/defaultRoleAssumers";
2525
const mockConstructorInput = jest.fn();
26-
jest.mock("./STSClient", () => ({
26+
jest.mock("../src/STSClient", () => ({
2727
STSClient: function (params: any) {
2828
mockConstructorInput(params);
2929
//@ts-ignore
30-
return new (jest.requireActual("./STSClient").STSClient)(params);
30+
return new (jest.requireActual("../src/STSClient").STSClient)(params);
3131
},
3232
}));
3333

codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/sts-client-defaultRoleAssumers.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ import type { AssumeRoleCommandInput } from "../src/commands/AssumeRoleCommand";
2121
import { AssumeRoleWithWebIdentityCommandInput } from "../src/commands/AssumeRoleWithWebIdentityCommand";
2222
import { getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity } from "../src/defaultRoleAssumers";
2323
const mockConstructorInput = jest.fn();
24-
jest.mock("./STSClient", () => ({
24+
jest.mock("../src/STSClient", () => ({
2525
STSClient: function (params: any) {
2626
mockConstructorInput(params);
2727
//@ts-ignore
28-
return new (jest.requireActual("./STSClient").STSClient)(params);
28+
return new (jest.requireActual("../src/STSClient").STSClient)(params);
2929
},
3030
}));
3131

0 commit comments

Comments
 (0)