From 0133dd1e473023e3e850724b81659ce4f14a52b8 Mon Sep 17 00:00:00 2001 From: Dylan Nienberg Date: Thu, 14 Nov 2024 12:12:21 -0600 Subject: [PATCH] updated --- VAMobile/src/store/slices/authSlice.sis.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/VAMobile/src/store/slices/authSlice.sis.test.ts b/VAMobile/src/store/slices/authSlice.sis.test.ts index cdd61bf9a4..5f7fd0ace1 100644 --- a/VAMobile/src/store/slices/authSlice.sis.test.ts +++ b/VAMobile/src/store/slices/authSlice.sis.test.ts @@ -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) }) }) @@ -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)