diff --git a/src/constants/part-number-strings.js b/src/constants/part-number-strings.js index c32864a87..d21ab83ac 100644 --- a/src/constants/part-number-strings.js +++ b/src/constants/part-number-strings.js @@ -2,6 +2,7 @@ const partNumberStrings = { // Recalibration MOBILE_STATIC_RECAL_FEE: "RECAL MOBILE", MOBILE_DUAL_RECAL_FEE: "RECAL MOBILEDUAL", + DONATION: "DONATION", }; export { partNumberStrings }; diff --git a/src/experiment-components/donation-block.vue b/src/experiment-components/donation-block.vue index 10ebec7a5..1daeedc41 100644 --- a/src/experiment-components/donation-block.vue +++ b/src/experiment-components/donation-block.vue @@ -130,10 +130,6 @@ export default { }, methods: { handleDonationAction(submitEvent) { - console.log( - "running handleDonationAction(), submitEvent.target.elements.amount.value: ", - submitEvent.target.elements.amount.value - ); this.selectedValue = submitEvent.target.elements.amount.value; }, }, diff --git a/src/layouts/confirmation/confirmation.spec.js b/src/layouts/confirmation/confirmation.spec.js index 45347491a..37ad71949 100644 --- a/src/layouts/confirmation/confirmation.spec.js +++ b/src/layouts/confirmation/confirmation.spec.js @@ -14,6 +14,19 @@ import { experimentSettings } from "@/constants/experiments"; const mockExperimentSettings = experimentSettings; +jest.mock("@/mixins/experiment-mixin.js", () => ({ + methods: { + getSettingValue(settingName) { + if (settingName === mockExperimentSettings.RECAL_PRICE_REMOVE) { + return true; + } + }, + hasSettingEqualTo(settingName, settingValue) { + return true; + }, + }, +})); + // Mock our module for promises. jest.mock("@/helpers/layout-helper.js", () => ({ settleAllPromises: jest.fn(), @@ -572,13 +585,6 @@ function setupMocks({ customMountOptions }) { getCmsContent: jest.fn().mockImplementation(() => { return wordingText; }), - getSettingValue: jest.fn((settingName) => { - if (settingName === experimentSettings.RECAL_PRICE_REMOVE) { - return "true"; - } - - return "false"; - }), }, }, ]; diff --git a/src/layouts/confirmation/confirmation.vue b/src/layouts/confirmation/confirmation.vue index c87da58dd..ac6ce2ed5 100644 --- a/src/layouts/confirmation/confirmation.vue +++ b/src/layouts/confirmation/confirmation.vue @@ -64,7 +64,7 @@ :isItac="isItac" :isNoComp="isNoComp" /> -