diff --git a/src/helpers/damage-helper.spec.js b/src/helpers/damage-helper.spec.js index cd54dddcd..abc8defe2 100644 --- a/src/helpers/damage-helper.spec.js +++ b/src/helpers/damage-helper.spec.js @@ -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); // }); // }); diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 87605d790..f9f0cb41c 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -28,12 +28,12 @@ class="my-3" :manualHeadline="NoServiceZipHeader" :manualCopy="NoServiceZipBody" - v-if="!isRegistrationZipIServicable && isVinValid && !isCarIdDifferent" + v-if="!isRegistrationZipServicable && isVinValid && !isCarIdDifferent" alertClass="alert-danger" />