diff --git a/src/helpers/heritage-integration/order-helper.spec.js b/src/helpers/heritage-integration/order-helper.spec.js index 89d677583..74c911e05 100644 --- a/src/helpers/heritage-integration/order-helper.spec.js +++ b/src/helpers/heritage-integration/order-helper.spec.js @@ -24,7 +24,7 @@ describe("loadSessionIfPresent", () => { ShouldResetState: testShouldResetState, ReferralCorrelationId: "xxx", ReferralNumber: "12345", - SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99" + SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99", }; document.cookie = `${cookieNames.FUNNEL_SESSION_INFO}=${JSON.stringify( @@ -47,7 +47,7 @@ describe("loadSessionIfPresent", () => { ShouldResetState: true, ReferralCorrelationId: "xxx-xxx-xxx", ReferralNumber: "12345", - SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99" + SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99", }); const mockData = { @@ -105,7 +105,7 @@ describe("loadSessionIfPresent", () => { ReferralNumber: 123456, ReferralCorrelationId: "yyy-yyy-yyyy", ReferralDate: new Date(), - SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99" + SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99", }); const mockData = { diff --git a/src/store/index.js b/src/store/index.js index 855956a8e..9c31bc9c8 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -362,7 +362,6 @@ export const mutations = { state.applicationUser.crmCustomerId = sessionInformation.applicationUser.crmCustomerId; state.applicationUser.pageData = sessionInformation.applicationUser.pageData; state.applicationUser.lastPage = sessionInformation.applicationUser.lastPage; - }, updateExperiments(state, experiments) { state.applicationUser.experiments = experiments; @@ -1412,9 +1411,9 @@ function sortArrayOfObjectsByPropertyValue(arrayOfObjects, propertyName) { function convertGlassPieceNamingForApi(glassArray) { if (!glassArray) return []; - + // check if array already converted. (likely when a session has been saved previously and then reloaded) - if (glassArray[0].location !== undefined){ + if (glassArray[0].location !== undefined) { return glassArray; } diff --git a/src/store/store.spec.js b/src/store/store.spec.js index c834faa02..063dedd76 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -228,14 +228,14 @@ describe("Mutations", () => { numberOfChips: 0, }, lineItems: { - "glassParts": null - }, + glassParts: null, + }, payment: { - "insuranceCoverage": { - "isVerified": false + insuranceCoverage: { + isVerified: false, }, - "isInsurance": false - }, + isInsurance: false, + }, parts: [], accountNumber: "123456789", insuranceInfo: {}, @@ -245,23 +245,23 @@ describe("Mutations", () => { applicationUser: { experiments: [ { - "universeName": "Concept Funnel Test With Rules", - "universeId": 463, - "testName": "Concept Dev Test", - "testId": 392, - "variationName": "Concept Test Variation", - "variationId": 1133, - "isActive": false, - "isExposed": true, - "userPartitionNumber": 84, - "assignmentId": 12211739, - "settings": { - "someKey": "false", - "sampleSetting": "Hi, my name is Vidya" - } - } - ] - } + universeName: "Concept Funnel Test With Rules", + universeId: 463, + testName: "Concept Dev Test", + testId: 392, + variationName: "Concept Test Variation", + variationId: 1133, + isActive: false, + isExposed: true, + userPartitionNumber: 84, + assignmentId: 12211739, + settings: { + someKey: "false", + sampleSetting: "Hi, my name is Vidya", + }, + }, + ], + }, }); // Assert