Skip to content

Commit f560a39

Browse files
authored
test(nestd-clients): add defaultProvider assertion (#7292)
1 parent 139aa8d commit f560a39

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/nested-clients/src/index.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,15 @@ describe("@aws-sdk/nested-clients/*", () => {
3232
}
3333
});
3434
});
35+
36+
describe("@aws-sdk/nested-clients/sts", () => {
37+
/**
38+
* This is to validate that the rewrite happened as expected in
39+
* runtimeConfig.ts. This is not the case with the canonical STS client from
40+
* \@aws-sdk/client-sts.
41+
*/
42+
it("has no credentialDefaultProvider", async () => {
43+
const client = new STSClient({});
44+
expect(client.config.credentialDefaultProvider).toBeUndefined();
45+
});
46+
});

0 commit comments

Comments
 (0)