Skip to content

Commit b1ada55

Browse files
fix failing tests
just added in a missing value in the test data that was causing validation to fail Signed-off-by: nkomonen-amazon <[email protected]>
1 parent 539b72f commit b1ada55

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/core/src/test/credentials/sso/cache.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import * as path from 'path'
88
import { makeTemporaryToolkitFolder, tryRemoveFolder } from '../../../shared/filesystemUtilities'
99
import { getRegistrationCache, getTokenCache } from '../../../auth/sso/cache'
1010
import { fs } from '../../../shared'
11+
import { SsoToken } from '../../../auth/sso/model'
1112

1213
describe('SSO Cache', function () {
1314
const region = 'dummyRegion'
@@ -26,7 +27,8 @@ describe('SSO Cache', function () {
2627
const validToken = {
2728
accessToken: 'longstringofrandomcharacters',
2829
expiresAt: new Date(Date.now() + hourInMs),
29-
}
30+
refreshToken: 'dummyRefreshToken',
31+
} as SsoToken
3032

3133
beforeEach(async function () {
3234
testDir = await makeTemporaryToolkitFolder()

packages/core/src/test/credentials/sso/ssoAccessTokenProvider.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ describe('SsoAccessTokenProvider', function () {
4545
return {
4646
accessToken: 'dummyAccessToken',
4747
expiresAt: new clock.Date(clock.Date.now() + timeDelta),
48+
refreshToken: 'dummyRefreshToken',
4849
...extras,
4950
}
5051
}

0 commit comments

Comments
 (0)