Skip to content

Commit 6974767

Browse files
committed
Add support for MFA and role assumption to shared ini provider
1 parent be8f930 commit 6974767

File tree

3 files changed

+587
-75
lines changed

3 files changed

+587
-75
lines changed

packages/credential-provider/__tests__/chain.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ describe('chain', () => {
3636
expect(providers[1].mock.calls.length).toBe(1);
3737
expect(providers[2].mock.calls.length).toBe(0);
3838
});
39+
40+
it('should reject chains with no links', async () => {
41+
await chain()().then(
42+
() => { throw new Error('The promise should have been rejected'); },
43+
() => { /* Promise rejected as expected */ }
44+
);
45+
});
3946
});

0 commit comments

Comments
 (0)