CSR-777 Prettier
This commit is contained in:
parent
0861de19d6
commit
2ea462e446
3 changed files with 28 additions and 29 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue