Skip to content

Commit 460770b

Browse files
author
Reno Seo
authored
fix: Update false-negative test case in Authentication.test (#439)
1 parent 6120c61 commit 460770b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dispatch/__tests__/Authentication.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ describe('Authentication tests', () => {
372372
test('when credentials are read from storage then the member variable stores the expiration as a date object', async () => {
373373
// Init
374374
const storageExpiration = new Date(Date.now() + 3600 * 1000);
375+
assumeRole.mockResolvedValue({
376+
accessKeyId: 'x',
377+
secretAccessKey: 'y',
378+
sessionToken: 'z',
379+
expiration: new Date(0)
380+
});
375381

376382
localStorage.setItem(
377383
CRED_KEY,

0 commit comments

Comments
 (0)