CASH-77: update unit tests for /quote
This commit is contained in:
parent
67fe5b23ac
commit
babde24dd0
1 changed files with 36 additions and 0 deletions
|
|
@ -121,6 +121,9 @@ store.getters = {
|
||||||
isInsurance: false,
|
isInsurance: false,
|
||||||
parentAccountNumber: applicationConfig.CASH_PARENT_ACCOUNT_NUMBER,
|
parentAccountNumber: applicationConfig.CASH_PARENT_ACCOUNT_NUMBER,
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -136,6 +139,9 @@ afterEach(() => {
|
||||||
insuranceCoverage: {},
|
insuranceCoverage: {},
|
||||||
isInsurance: false,
|
isInsurance: false,
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -263,6 +269,9 @@ describe("quote.vue", () => {
|
||||||
glassParts: ["item", "item2"],
|
glassParts: ["item", "item2"],
|
||||||
},
|
},
|
||||||
payment: {},
|
payment: {},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
zipCode: "12345",
|
zipCode: "12345",
|
||||||
zipCodeCtu: "value",
|
zipCodeCtu: "value",
|
||||||
|
|
@ -309,6 +318,9 @@ describe("quote.vue", () => {
|
||||||
glassParts: ["item", "item2"],
|
glassParts: ["item", "item2"],
|
||||||
},
|
},
|
||||||
payment: {},
|
payment: {},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
zipCode: "12345",
|
zipCode: "12345",
|
||||||
zipCodeCtu: "value",
|
zipCodeCtu: "value",
|
||||||
|
|
@ -355,6 +367,9 @@ describe("quote.vue", () => {
|
||||||
payment: {
|
payment: {
|
||||||
isInsurance: null,
|
isInsurance: null,
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
state: null,
|
state: null,
|
||||||
},
|
},
|
||||||
|
|
@ -396,6 +411,9 @@ describe("quote.vue", () => {
|
||||||
payment: {
|
payment: {
|
||||||
isInsurance: null,
|
isInsurance: null,
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
state: null,
|
state: null,
|
||||||
},
|
},
|
||||||
|
|
@ -438,6 +456,9 @@ describe("quote.vue", () => {
|
||||||
payment: {
|
payment: {
|
||||||
isInsurance: true,
|
isInsurance: true,
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
state: null,
|
state: null,
|
||||||
},
|
},
|
||||||
|
|
@ -480,6 +501,9 @@ describe("quote.vue", () => {
|
||||||
payment: {
|
payment: {
|
||||||
isInsurance: false,
|
isInsurance: false,
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
state: null,
|
state: null,
|
||||||
},
|
},
|
||||||
|
|
@ -523,6 +547,9 @@ describe("quote.vue", () => {
|
||||||
payment: {
|
payment: {
|
||||||
isInsurance: null, // Ensure that previous selection isn't overriding selection
|
isInsurance: null, // Ensure that previous selection isn't overriding selection
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
state: null,
|
state: null,
|
||||||
},
|
},
|
||||||
|
|
@ -568,6 +595,9 @@ describe("quote.vue", () => {
|
||||||
payment: {
|
payment: {
|
||||||
isInsurance: null, // Ensure that previous selection isn't overriding selection
|
isInsurance: null, // Ensure that previous selection isn't overriding selection
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
state: null,
|
state: null,
|
||||||
},
|
},
|
||||||
|
|
@ -612,6 +642,9 @@ describe("quote.vue", () => {
|
||||||
payment: {
|
payment: {
|
||||||
isInsurance: null,
|
isInsurance: null,
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
state: "AZ",
|
state: "AZ",
|
||||||
},
|
},
|
||||||
|
|
@ -717,6 +750,9 @@ describe("quote.vue", () => {
|
||||||
isInsurance: true,
|
isInsurance: true,
|
||||||
inactivePromos: [],
|
inactivePromos: [],
|
||||||
},
|
},
|
||||||
|
customer: {
|
||||||
|
emailAddress: "test@test.com",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
externalParameterState: { isExternalParameter: 1 },
|
externalParameterState: { isExternalParameter: 1 },
|
||||||
externalParameterQuote: {
|
externalParameterQuote: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue