SSR-600 Remove ApplicationUserSession from Load Session

This commit is contained in:
Josh Dassinger 2024-03-08 09:50:38 -06:00
parent 01cde2f86c
commit 381c9bb496
2 changed files with 0 additions and 16 deletions

View file

@ -1229,8 +1229,6 @@ export const useMainStore = defineStore({
return response;
}
applicationUser.experiments = data.applicationUser?.experiments ?? [];
if (order.policy.policyLookupSuccessful) {
order.customer.emailAddress = data.customer?.emailAddress;
order.customer.firstName = data.customer?.firstName;

View file

@ -1032,20 +1032,6 @@ describe('Store', () => {
// Asserts
await expect(result).resolves.toBe(response.data);
});
it('sets expected application user data', async () => {
// Arrange
globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.resolve(fullApiResponse));
const duplicate = {
referralNumber: getRandomString(6, 6),
referralCorrelationId: getRandomGuid()
};
// Act
await store.loadSession(duplicate);
// Asserts
expect(store.applicationUser.experiments).toEqual(applicationUser.experiments);
});
it('sets expected vehicle data', async () => {
// Arrange
globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.resolve(fullApiResponse));