From 26f20b8d5a8108ebbe5df79a375156b9c2c05cf1 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Tue, 10 Oct 2023 09:50:33 -0400 Subject: [PATCH] Formatting --- .../payment-method-list-button.spec.js | 30 +++++++++---------- .../payment-method-list-button.vue | 5 ++-- .../payment-method-question.spec.js | 8 ++--- 3 files changed, 20 insertions(+), 23 deletions(-) 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"> -
+
\ No newline at end of file + diff --git a/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js b/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js index f8e48a0ad..d3a486d57 100644 --- a/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js +++ b/src/layouts/payment-method/payment-method-question/payment-method-question.spec.js @@ -25,7 +25,7 @@ const testConstants = { image: "imageB", subWidget: "subWidgetB", }, - } + }, }, }; @@ -83,8 +83,8 @@ describe("Payment Method Question", () => { altText: testConstants.cms.answers.optionB.text, groupName: "payment-method", value: testConstants.cms.answers.optionB.name, - buttonImage: testConstants.cms.answers.optionB.image - } + buttonImage: testConstants.cms.answers.optionB.image, + }, ]); }); @@ -107,7 +107,7 @@ describe("Payment Method Question", () => { function generateDefaultProps() { return { - modelValue: "modelValue" + modelValue: "modelValue", }; }