Skip to content

Commit 33e3afd

Browse files
committed
test(nested-clients): unit test index exports
1 parent b1fc510 commit 33e3afd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { describe, expect, test as it } from "vitest";
2+
3+
import {
4+
AssumeRoleCommand,
5+
AssumeRoleWithWebIdentityCommand,
6+
CreateTokenCommand,
7+
getDefaultRoleAssumer,
8+
getDefaultRoleAssumerWithWebIdentity,
9+
SSOOIDCClient,
10+
STSClient,
11+
} from "./index";
12+
13+
describe("@aws-sdk/nested-clients", () => {
14+
it("exports symbols used in internal credential providers", async () => {
15+
for (const symbol of [
16+
AssumeRoleCommand,
17+
AssumeRoleWithWebIdentityCommand,
18+
CreateTokenCommand,
19+
getDefaultRoleAssumer,
20+
getDefaultRoleAssumerWithWebIdentity,
21+
SSOOIDCClient,
22+
STSClient,
23+
]) {
24+
expect(symbol).toBeDefined();
25+
expect(symbol).toBeInstanceOf(Function);
26+
}
27+
});
28+
});

0 commit comments

Comments
 (0)