Skip to content

Commit

Permalink
fix: Update false-negative test case in Authentication.test
Browse files Browse the repository at this point in the history
  • Loading branch information
adebayor123 committed Aug 23, 2023
1 parent 6120c61 commit bb7c730
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dispatch/__tests__/Authentication.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ describe('Authentication tests', () => {
test('when credentials are read from storage then the member variable stores the expiration as a date object', async () => {
// Init
const storageExpiration = new Date(Date.now() + 3600 * 1000);
assumeRole.mockResolvedValue({
accessKeyId: 'x',
secretAccessKey: 'y',
sessionToken: 'z',
expiration: new Date(0)
});

localStorage.setItem(
CRED_KEY,
Expand Down

0 comments on commit bb7c730

Please sign in to comment.