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,
|
ShouldResetState: testShouldResetState,
|
||||||
ReferralCorrelationId: "xxx",
|
ReferralCorrelationId: "xxx",
|
||||||
ReferralNumber: "12345",
|
ReferralNumber: "12345",
|
||||||
SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99"
|
SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99",
|
||||||
};
|
};
|
||||||
|
|
||||||
document.cookie = `${cookieNames.FUNNEL_SESSION_INFO}=${JSON.stringify(
|
document.cookie = `${cookieNames.FUNNEL_SESSION_INFO}=${JSON.stringify(
|
||||||
|
|
@ -47,7 +47,7 @@ describe("loadSessionIfPresent", () => {
|
||||||
ShouldResetState: true,
|
ShouldResetState: true,
|
||||||
ReferralCorrelationId: "xxx-xxx-xxx",
|
ReferralCorrelationId: "xxx-xxx-xxx",
|
||||||
ReferralNumber: "12345",
|
ReferralNumber: "12345",
|
||||||
SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99"
|
SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99",
|
||||||
});
|
});
|
||||||
|
|
||||||
const mockData = {
|
const mockData = {
|
||||||
|
|
@ -105,7 +105,7 @@ describe("loadSessionIfPresent", () => {
|
||||||
ReferralNumber: 123456,
|
ReferralNumber: 123456,
|
||||||
ReferralCorrelationId: "yyy-yyy-yyyy",
|
ReferralCorrelationId: "yyy-yyy-yyyy",
|
||||||
ReferralDate: new Date(),
|
ReferralDate: new Date(),
|
||||||
SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99"
|
SavedSessionId: "aa115a05-e268-4eb4-a095-1d54b44f4a99",
|
||||||
});
|
});
|
||||||
|
|
||||||
const mockData = {
|
const mockData = {
|
||||||
|
|
|
||||||
|
|
@ -362,7 +362,6 @@ export const mutations = {
|
||||||
state.applicationUser.crmCustomerId = sessionInformation.applicationUser.crmCustomerId;
|
state.applicationUser.crmCustomerId = sessionInformation.applicationUser.crmCustomerId;
|
||||||
state.applicationUser.pageData = sessionInformation.applicationUser.pageData;
|
state.applicationUser.pageData = sessionInformation.applicationUser.pageData;
|
||||||
state.applicationUser.lastPage = sessionInformation.applicationUser.lastPage;
|
state.applicationUser.lastPage = sessionInformation.applicationUser.lastPage;
|
||||||
|
|
||||||
},
|
},
|
||||||
updateExperiments(state, experiments) {
|
updateExperiments(state, experiments) {
|
||||||
state.applicationUser.experiments = experiments;
|
state.applicationUser.experiments = experiments;
|
||||||
|
|
@ -1412,9 +1411,9 @@ function sortArrayOfObjectsByPropertyValue(arrayOfObjects, propertyName) {
|
||||||
|
|
||||||
function convertGlassPieceNamingForApi(glassArray) {
|
function convertGlassPieceNamingForApi(glassArray) {
|
||||||
if (!glassArray) return [];
|
if (!glassArray) return [];
|
||||||
|
|
||||||
// check if array already converted. (likely when a session has been saved previously and then reloaded)
|
// 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;
|
return glassArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -228,14 +228,14 @@ describe("Mutations", () => {
|
||||||
numberOfChips: 0,
|
numberOfChips: 0,
|
||||||
},
|
},
|
||||||
lineItems: {
|
lineItems: {
|
||||||
"glassParts": null
|
glassParts: null,
|
||||||
},
|
},
|
||||||
payment: {
|
payment: {
|
||||||
"insuranceCoverage": {
|
insuranceCoverage: {
|
||||||
"isVerified": false
|
isVerified: false,
|
||||||
},
|
},
|
||||||
"isInsurance": false
|
isInsurance: false,
|
||||||
},
|
},
|
||||||
parts: [],
|
parts: [],
|
||||||
accountNumber: "123456789",
|
accountNumber: "123456789",
|
||||||
insuranceInfo: {},
|
insuranceInfo: {},
|
||||||
|
|
@ -245,23 +245,23 @@ describe("Mutations", () => {
|
||||||
applicationUser: {
|
applicationUser: {
|
||||||
experiments: [
|
experiments: [
|
||||||
{
|
{
|
||||||
"universeName": "Concept Funnel Test With Rules",
|
universeName: "Concept Funnel Test With Rules",
|
||||||
"universeId": 463,
|
universeId: 463,
|
||||||
"testName": "Concept Dev Test",
|
testName: "Concept Dev Test",
|
||||||
"testId": 392,
|
testId: 392,
|
||||||
"variationName": "Concept Test Variation",
|
variationName: "Concept Test Variation",
|
||||||
"variationId": 1133,
|
variationId: 1133,
|
||||||
"isActive": false,
|
isActive: false,
|
||||||
"isExposed": true,
|
isExposed: true,
|
||||||
"userPartitionNumber": 84,
|
userPartitionNumber: 84,
|
||||||
"assignmentId": 12211739,
|
assignmentId: 12211739,
|
||||||
"settings": {
|
settings: {
|
||||||
"someKey": "false",
|
someKey: "false",
|
||||||
"sampleSetting": "Hi, my name is Vidya"
|
sampleSetting: "Hi, my name is Vidya",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue