Fixing typos
This commit is contained in:
parent
78f10f05f2
commit
017ae832c5
3 changed files with 14 additions and 12 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import {getDamageString, isGlassAvailableForCarId} from "./damage-helper";
|
||||
import baseMixin from "@/mixins/base-mixin.js";
|
||||
//import baseMixin from "@/mixins/base-mixin.js";
|
||||
|
||||
jest.mock("@/store", () => ({
|
||||
getters: {damage: {
|
||||
glassToReplace: [{location: "TEST"}]
|
||||
glassToReplace: [{location: "Windshield", name: "windshield"}]
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
|
@ -11,19 +11,21 @@ jest.mock("@/store", () => ({
|
|||
describe("damage-helper.js", () => {
|
||||
it("Should return damage getter info", () => {
|
||||
const damage = getDamageString();
|
||||
expect(damage).toEqual("TEST")
|
||||
expect(damage).toEqual("Windshield")
|
||||
});
|
||||
});
|
||||
|
||||
// describe("damage-helper.js", () => {
|
||||
// it("Should return false if no mismatches between each array", () => {
|
||||
// it("Should return false if no mismatches between each array", async () => {
|
||||
// const updatedOptions = {
|
||||
// windshieldOptions: {availableReplacementOptions: ["windshield"]}
|
||||
// data: {
|
||||
// windshieldOptions: {availableReplacementOptions: ["windshield"]}
|
||||
// }
|
||||
// }
|
||||
// baseMixin.methods.dispatchNonBlockingStoreAction = jest.fn().mockImplementation(()=> {
|
||||
// return updatedOptions;
|
||||
// });
|
||||
// const misMatch = isGlassAvailableForCarId('carId');
|
||||
// const misMatch = await isGlassAvailableForCarId();
|
||||
// expect(misMatch).toEqual(false);
|
||||
// });
|
||||
// });
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@
|
|||
class="my-3"
|
||||
:manualHeadline="NoServiceZipHeader"
|
||||
:manualCopy="NoServiceZipBody"
|
||||
v-if="!isRegistrationZipIServicable && isVinValid && !isCarIdDifferent"
|
||||
v-if="!isRegistrationZipServicable && isVinValid && !isCarIdDifferent"
|
||||
alertClass="alert-danger"
|
||||
/>
|
||||
<div class="row my-2">
|
||||
<div class="col">
|
||||
<textboxQuestion v-if="!isRegistrationZipIServicable" cmsWidgetName="ServiceZip" v-model="serviceZip" inputId="serviceZip" validationRules="zip-required" />
|
||||
<textboxQuestion v-if="!isRegistrationZipServicable" cmsWidgetName="ServiceZip" v-model="serviceZip" inputId="serviceZip" validationRules="zip-required" />
|
||||
</div>
|
||||
</div>
|
||||
<alert
|
||||
|
|
@ -115,7 +115,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
isRegistrationZipIServicable: true,
|
||||
isRegistrationZipServicable: true,
|
||||
isVinValid: true,
|
||||
isCarIdDifferent: false,
|
||||
licensePlate: this.getLicensePlateFromStore(),
|
||||
|
|
@ -178,7 +178,7 @@ export default {
|
|||
if (!zipValidation.data.isServiceable) {
|
||||
this.$refs.funnelFooter.removeLoader();
|
||||
this.isVinValid = true;
|
||||
this.isRegistrationZipIServicable = false;
|
||||
this.isRegistrationZipServicable = false;
|
||||
this.isCarIdDifferent = false;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,8 +141,8 @@ export const mutations = {
|
|||
updateRegistrationZipCode(state, reistrationZipCode){
|
||||
state.order.vehicle.registration.zipCode = reistrationZipCode;
|
||||
},
|
||||
updateRegistrationAddress(state, reistrationAddress){
|
||||
state.order.vehicle.registration.address = reistrationAddress;
|
||||
updateRegistrationAddress(state, registrationAddress){
|
||||
state.order.vehicle.registration.address = registrationAddress;
|
||||
},
|
||||
updateServiceLocationZip(state, serviceLocationZip){
|
||||
state.order.serviceLocation.zip = serviceLocationZip;
|
||||
|
|
|
|||
Loading…
Reference in a new issue