From f9a02effd64e89cf1eef6c79116577b1ec0eca1f Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 23 Sep 2024 19:07:17 -0400 Subject: [PATCH] CSR-2166: fix unit tests --- src/layouts/quote/quote.spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/layouts/quote/quote.spec.js b/src/layouts/quote/quote.spec.js index ef5c945a3..d9c1ffabf 100644 --- a/src/layouts/quote/quote.spec.js +++ b/src/layouts/quote/quote.spec.js @@ -7,6 +7,7 @@ import store from "@/store"; import * as navigateToHeritage from "@/helpers/heritage-integration/navigation-helper"; import { nextTick } from "vue"; import { experimentSettings } from "@/constants/experiments"; +import experimentMixin from "@/mixins/experiment-mixin.js"; import baseMixin from "@/mixins/base-mixin.js"; import { containsLineItemWithPartType } from "../../helpers/service-package-helper"; @@ -746,6 +747,14 @@ function setupMocks({ customMountOptions }) { ...customMountOptions, }); + mountOptions.mixins = [ + { + methods: { + getSettingValue: jest.fn(), + }, + }, + ]; + baseMixin.methods.ResetExternalParamsAndHideModal = jest.fn(); baseMixin.methods.isFormValid = jest.fn().mockReturnValue(true); mountOptions.global.mocks["$store"] = store;