Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparowhawk committed Nov 14, 2024
1 parent 8d5d720 commit 0133dd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VAMobile/src/store/slices/authSlice.sis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ context('authAction SIS', () => {

// we shouldn't be logged in until the user decides how to store refreshToken
expect(authState.loggedIn).toBeTruthy()
const expectedOpts = expect.objectContaining({
const expectedOpts = {
accessControl: Keychain.ACCESS_CONTROL.BIOMETRY_ANY,
accessible: Keychain.ACCESSIBLE.WHEN_UNLOCKED,
authenticationType: Keychain.AUTHENTICATION_TYPE.BIOMETRICS,
storage: Keychain.STORAGE_TYPE.AES_GCM,
})
}
expect(Keychain.setInternetCredentials).toHaveBeenCalledWith('vamobile', 'user', nonce, expectedOpts)
})
})
Expand Down Expand Up @@ -483,12 +483,12 @@ context('authAction SIS', () => {
},
body: `refresh_token=${testRefreshToken}`,
})
const expectedOpts = expect.objectContaining({
const expectedOpts = {
accessControl: Keychain.ACCESS_CONTROL.BIOMETRY_ANY,
accessible: Keychain.ACCESSIBLE.WHEN_UNLOCKED,
authenticationType: Keychain.AUTHENTICATION_TYPE.BIOMETRICS,
storage: Keychain.STORAGE_TYPE.AES_GCM,
})
}
console.debug(testRefreshToken)
console.debug(tokenPayload)
expect(fetch).toHaveBeenCalledWith(tokenUrl, tokenPayload)
Expand Down

0 comments on commit 0133dd1

Please sign in to comment.