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() {
|
function setupMocks() {
|
||||||
|
|
||||||
store.getters = {
|
store.getters = {
|
||||||
damage: {},
|
damage: {},
|
||||||
lineItems: {
|
lineItems: {
|
||||||
|
|
@ -71,6 +72,13 @@ function setupMocks() {
|
||||||
isNoComp: false,
|
isNoComp: false,
|
||||||
isItac: false,
|
isItac: false,
|
||||||
},
|
},
|
||||||
|
serviceLocation: {
|
||||||
|
appointmentType: "Mobile",
|
||||||
|
address: "123 Test Ave",
|
||||||
|
city: "Anytown",
|
||||||
|
state: "OH",
|
||||||
|
zipCode: "00000",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
policy: {
|
policy: {
|
||||||
currentDeductible: 123,
|
currentDeductible: 123,
|
||||||
|
|
@ -106,6 +114,9 @@ function setupMocks() {
|
||||||
|
|
||||||
return "false";
|
return "false";
|
||||||
}),
|
}),
|
||||||
|
getCmsContent: jest.fn().mockImplementation(() => {
|
||||||
|
return "test text";
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ describe("Service Location Review Block", () => {
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
expect(wrapper.vm.displayContent).toEqual([
|
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
|
// Assert
|
||||||
expect(wrapper.vm.displayContent).toEqual([
|
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
|
// Assert
|
||||||
expect(wrapper.vm.displayContent).toEqual([
|
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();
|
await wrapper.vm.$nextTick();
|
||||||
|
|
||||||
// Assert
|
// 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 {
|
return {
|
||||||
cmsWidgetName: "ServiceLocationTitleWidget",
|
cmsWidgetName: "ServiceLocationTitleWidget",
|
||||||
serviceLocation: {
|
serviceLocation: {
|
||||||
address: "Mobile Address 1",
|
address: "mobile address 1",
|
||||||
address2: "Mobile Address 2",
|
address2: "mobile address 2",
|
||||||
city: "Mobile City",
|
city: "mobile city",
|
||||||
state: "MO",
|
state: "MO",
|
||||||
zipCode: "11111",
|
zipCode: "11111",
|
||||||
zipCodeCtu: "",
|
zipCodeCtu: "",
|
||||||
|
|
@ -99,8 +99,8 @@ function generateDefaultProps() {
|
||||||
provider: {
|
provider: {
|
||||||
providerNumber: "",
|
providerNumber: "",
|
||||||
address: {
|
address: {
|
||||||
streetAddress: "Service Location Address",
|
streetAddress: "service location address",
|
||||||
city: "Service Location City",
|
city: "service location city",
|
||||||
state: "SL",
|
state: "SL",
|
||||||
zipCode: "22222",
|
zipCode: "22222",
|
||||||
zipCodeCtu: "",
|
zipCodeCtu: "",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue