SSR-600 Remove ApplicationUserSession from Load Session
This commit is contained in:
parent
01cde2f86c
commit
381c9bb496
2 changed files with 0 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue