Skip to content

Commit 528a104

Browse files
committed
test: isSsoProfile.spec.ts
1 parent 2adbafb commit 528a104

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { isSsoProfile } from "./isSsoProfile";
2+
3+
describe(isSsoProfile.name, () => {
4+
it("returns false for empty profile", () => {
5+
expect(isSsoProfile({})).toEqual(false);
6+
});
7+
8+
it.each(["sso_start_url", "sso_account_id", "sso_region", "sso_role_name"])(
9+
"returns true if value at '%s' is of type string",
10+
(key) => {
11+
expect(isSsoProfile({ [key]: "string" })).toEqual(true);
12+
}
13+
);
14+
});

0 commit comments

Comments
 (0)