diff --git a/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js b/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js index 76d5326d9..8cf6c55bb 100644 --- a/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js +++ b/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.spec.js @@ -23,9 +23,7 @@ let cmsContent; describe("Payment Method Question", () => { beforeEach(() => { - cmsContent = { - - }; + cmsContent = {}; }); describe("Side image", () => { @@ -33,45 +31,45 @@ describe("Payment Method Question", () => { // Arrange const props = generateDefaultProps(); const { wrapper } = setupMocks({ - propsData: props + propsData: props, }); - + // Act const showSideImage = wrapper.vm.shouldDisplaySideImage; - + expect(showSideImage).toBe(true); }); - + it("Does not render side image if no image is present", () => { // Arrange let props = generateDefaultProps(); props.buttonImage = testConstants.images.NONE; - + const { wrapper } = setupMocks({ - propsData: props + propsData: props, }); - + // Act const showSideImage = wrapper.vm.shouldDisplaySideImage; - + expect(showSideImage).toBe(false); }); - + it("Does not render side image if inline", () => { // Arrange let props = generateDefaultProps(); props.buttonLabel = testConstants.content.withInline; props.altText = testConstants.content.withInline; - + const { wrapper } = setupMocks({ - propsData: props + propsData: props, }); - + // Act const showSideImage = wrapper.vm.shouldDisplaySideImage; - + expect(showSideImage).toBe(false); }); }); diff --git a/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.vue b/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.vue index a6b61125e..2763f1af9 100644 --- a/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.vue +++ b/src/layouts/payment-method/payment-method-question/payment-method-list-button/payment-method-list-button.vue @@ -3,8 +3,7 @@ v-bind="$props" buttonWrapperClasses="list-group base-input-button list-button rounded-3 d-flex flex-column w-100 mb-2" v-model="selectedValue"> -