diff --git a/src/common-components/button-question/button-question.vue b/src/common-components/button-question/button-question.vue index e29f1fd93..29f7b24ab 100644 --- a/src/common-components/button-question/button-question.vue +++ b/src/common-components/button-question/button-question.vue @@ -158,11 +158,11 @@ export default { diff --git a/src/helpers/damage-helper.spec.js b/src/helpers/damage-helper.spec.js index 1370b8e47..cd54dddcd 100644 --- a/src/helpers/damage-helper.spec.js +++ b/src/helpers/damage-helper.spec.js @@ -1,4 +1,5 @@ -import {getDamageString, compareGlassOptions} from "./damage-helper"; +import {getDamageString, isGlassAvailableForCarId} from "./damage-helper"; +import baseMixin from "@/mixins/base-mixin.js"; jest.mock("@/store", () => ({ getters: {damage: { @@ -16,11 +17,13 @@ jest.mock("@/store", () => ({ // describe("damage-helper.js", () => { // it("Should return false if no mismatches between each array", () => { - // const newOptions = { + // const updatedOptions = { // windshieldOptions: {availableReplacementOptions: ["windshield"]} // } - // const currentOptions = [{location: "Windshield", name: "windshield"}]; - // const misMatch = compareGlassOptions(newOptions, currentOptions); + // baseMixin.methods.dispatchNonBlockingStoreAction = jest.fn().mockImplementation(()=> { + // return updatedOptions; + // }); + // const misMatch = isGlassAvailableForCarId('carId'); // 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 99275fc2c..87605d790 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -28,9 +28,14 @@ class="my-3" :manualHeadline="NoServiceZipHeader" :manualCopy="NoServiceZipBody" - v-if="!isRegistrationZipIServicable" + v-if="!isRegistrationZipIServicable && isVinValid && !isCarIdDifferent" alertClass="alert-danger" /> +