Update unit tests.
This commit is contained in:
parent
96aca0094e
commit
a68a10e9bc
2 changed files with 20 additions and 9 deletions
|
|
@ -45,6 +45,7 @@ describe("payment-method.vue", () => {
|
|||
});
|
||||
|
||||
function setupMocks() {
|
||||
|
||||
store.getters = {
|
||||
damage: {},
|
||||
lineItems: {
|
||||
|
|
@ -71,6 +72,13 @@ function setupMocks() {
|
|||
isNoComp: false,
|
||||
isItac: false,
|
||||
},
|
||||
serviceLocation: {
|
||||
appointmentType: "Mobile",
|
||||
address: "123 Test Ave",
|
||||
city: "Anytown",
|
||||
state: "OH",
|
||||
zipCode: "00000",
|
||||
},
|
||||
},
|
||||
policy: {
|
||||
currentDeductible: 123,
|
||||
|
|
@ -106,6 +114,9 @@ function setupMocks() {
|
|||
|
||||
return "false";
|
||||
}),
|
||||
getCmsContent: jest.fn().mockImplementation(() => {
|
||||
return "test text";
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ describe("Service Location Review Block", () => {
|
|||
|
||||
// Assert
|
||||
expect(wrapper.vm.displayContent).toEqual([
|
||||
"Mobile Address 1, Mobile Address 2, Mobile City, MO 11111",
|
||||
"mobile address 1, mobile address 2, mobile city, MO 11111",
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ describe("Service Location Review Block", () => {
|
|||
|
||||
// Assert
|
||||
expect(wrapper.vm.displayContent).toEqual([
|
||||
"Service Location Address, Service Location City, SL 22222",
|
||||
"service location address, service location city, SL 22222",
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ describe("Service Location Review Block", () => {
|
|||
|
||||
// Assert
|
||||
expect(wrapper.vm.displayContent).toEqual([
|
||||
"Service Location Address, Service Location City, SL 22222",
|
||||
"service location address, service location city, SL 22222",
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ describe("Service Location Review Block", () => {
|
|||
await wrapper.vm.$nextTick();
|
||||
|
||||
// Assert
|
||||
expect(wrapper.vm.displayContent).toEqual(["Mobile Address 1, Mobile City, MO 11111"]);
|
||||
expect(wrapper.vm.displayContent).toEqual(["mobile address 1, mobile city, MO 11111"]);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -88,9 +88,9 @@ function generateDefaultProps() {
|
|||
return {
|
||||
cmsWidgetName: "ServiceLocationTitleWidget",
|
||||
serviceLocation: {
|
||||
address: "Mobile Address 1",
|
||||
address2: "Mobile Address 2",
|
||||
city: "Mobile City",
|
||||
address: "mobile address 1",
|
||||
address2: "mobile address 2",
|
||||
city: "mobile city",
|
||||
state: "MO",
|
||||
zipCode: "11111",
|
||||
zipCodeCtu: "",
|
||||
|
|
@ -99,8 +99,8 @@ function generateDefaultProps() {
|
|||
provider: {
|
||||
providerNumber: "",
|
||||
address: {
|
||||
streetAddress: "Service Location Address",
|
||||
city: "Service Location City",
|
||||
streetAddress: "service location address",
|
||||
city: "service location city",
|
||||
state: "SL",
|
||||
zipCode: "22222",
|
||||
zipCodeCtu: "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue