Fixing typos

This commit is contained in:
Max 2022-04-28 09:19:56 -04:00
parent 78f10f05f2
commit 017ae832c5
3 changed files with 14 additions and 12 deletions

View file

@ -1,9 +1,9 @@
import {getDamageString, isGlassAvailableForCarId} from "./damage-helper"; import {getDamageString, isGlassAvailableForCarId} from "./damage-helper";
import baseMixin from "@/mixins/base-mixin.js"; //import baseMixin from "@/mixins/base-mixin.js";
jest.mock("@/store", () => ({ jest.mock("@/store", () => ({
getters: {damage: { getters: {damage: {
glassToReplace: [{location: "TEST"}] glassToReplace: [{location: "Windshield", name: "windshield"}]
} }
} }
})); }));
@ -11,19 +11,21 @@ jest.mock("@/store", () => ({
describe("damage-helper.js", () => { describe("damage-helper.js", () => {
it("Should return damage getter info", () => { it("Should return damage getter info", () => {
const damage = getDamageString(); const damage = getDamageString();
expect(damage).toEqual("TEST") expect(damage).toEqual("Windshield")
}); });
}); });
// describe("damage-helper.js", () => { // 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 = { // const updatedOptions = {
// data: {
// windshieldOptions: {availableReplacementOptions: ["windshield"]} // windshieldOptions: {availableReplacementOptions: ["windshield"]}
// } // }
// }
// baseMixin.methods.dispatchNonBlockingStoreAction = jest.fn().mockImplementation(()=> { // baseMixin.methods.dispatchNonBlockingStoreAction = jest.fn().mockImplementation(()=> {
// return updatedOptions; // return updatedOptions;
// }); // });
// const misMatch = isGlassAvailableForCarId('carId'); // const misMatch = await isGlassAvailableForCarId();
// expect(misMatch).toEqual(false); // expect(misMatch).toEqual(false);
// }); // });
// }); // });

View file

@ -28,12 +28,12 @@
class="my-3" class="my-3"
:manualHeadline="NoServiceZipHeader" :manualHeadline="NoServiceZipHeader"
:manualCopy="NoServiceZipBody" :manualCopy="NoServiceZipBody"
v-if="!isRegistrationZipIServicable && isVinValid && !isCarIdDifferent" v-if="!isRegistrationZipServicable && isVinValid && !isCarIdDifferent"
alertClass="alert-danger" alertClass="alert-danger"
/> />
<div class="row my-2"> <div class="row my-2">
<div class="col"> <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>
</div> </div>
<alert <alert
@ -115,7 +115,7 @@ export default {
}, },
data() { data() {
return { return {
isRegistrationZipIServicable: true, isRegistrationZipServicable: true,
isVinValid: true, isVinValid: true,
isCarIdDifferent: false, isCarIdDifferent: false,
licensePlate: this.getLicensePlateFromStore(), licensePlate: this.getLicensePlateFromStore(),
@ -178,7 +178,7 @@ export default {
if (!zipValidation.data.isServiceable) { if (!zipValidation.data.isServiceable) {
this.$refs.funnelFooter.removeLoader(); this.$refs.funnelFooter.removeLoader();
this.isVinValid = true; this.isVinValid = true;
this.isRegistrationZipIServicable = false; this.isRegistrationZipServicable = false;
this.isCarIdDifferent = false; this.isCarIdDifferent = false;
return; return;
} }

View file

@ -141,8 +141,8 @@ export const mutations = {
updateRegistrationZipCode(state, reistrationZipCode){ updateRegistrationZipCode(state, reistrationZipCode){
state.order.vehicle.registration.zipCode = reistrationZipCode; state.order.vehicle.registration.zipCode = reistrationZipCode;
}, },
updateRegistrationAddress(state, reistrationAddress){ updateRegistrationAddress(state, registrationAddress){
state.order.vehicle.registration.address = reistrationAddress; state.order.vehicle.registration.address = registrationAddress;
}, },
updateServiceLocationZip(state, serviceLocationZip){ updateServiceLocationZip(state, serviceLocationZip){
state.order.serviceLocation.zip = serviceLocationZip; state.order.serviceLocation.zip = serviceLocationZip;