Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
just added in a missing value in the test data that was causing
validation to fail

Signed-off-by: nkomonen-amazon <[email protected]>
  • Loading branch information
nkomonen-amazon committed Dec 9, 2024
1 parent 539b72f commit b1ada55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/test/credentials/sso/cache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import * as path from 'path'
import { makeTemporaryToolkitFolder, tryRemoveFolder } from '../../../shared/filesystemUtilities'
import { getRegistrationCache, getTokenCache } from '../../../auth/sso/cache'
import { fs } from '../../../shared'
import { SsoToken } from '../../../auth/sso/model'

describe('SSO Cache', function () {
const region = 'dummyRegion'
Expand All @@ -26,7 +27,8 @@ describe('SSO Cache', function () {
const validToken = {
accessToken: 'longstringofrandomcharacters',
expiresAt: new Date(Date.now() + hourInMs),
}
refreshToken: 'dummyRefreshToken',
} as SsoToken

beforeEach(async function () {
testDir = await makeTemporaryToolkitFolder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('SsoAccessTokenProvider', function () {
return {
accessToken: 'dummyAccessToken',
expiresAt: new clock.Date(clock.Date.now() + timeDelta),
refreshToken: 'dummyRefreshToken',
...extras,
}
}
Expand Down

0 comments on commit b1ada55

Please sign in to comment.