From 48e5652a699edd88759fcf31e5e570de1175dd52 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Wed, 22 Feb 2023 14:41:27 -0500 Subject: [PATCH] Prettified --- src/digital-components/modal/modal.spec.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/digital-components/modal/modal.spec.js b/src/digital-components/modal/modal.spec.js index ace7d49a5..bcd6303bd 100644 --- a/src/digital-components/modal/modal.spec.js +++ b/src/digital-components/modal/modal.spec.js @@ -114,7 +114,6 @@ describe("modal.vue", () => { // Assert expect(wrapper.vm.isFooterButtonDisabled).toBe(true); - }); it("Should have a disabled footer button when the form is invalid", async () => { @@ -139,7 +138,6 @@ describe("modal.vue", () => { // Assert expect(wrapper.vm.isFooterButtonDisabled).toBe(true); - }); it("Should call bootstrap Modal method 'show' when calling 'openModal'", async () => { @@ -151,8 +149,7 @@ describe("modal.vue", () => { useIsFormDirty.mockReturnValue(true); useIsFormValid.mockReturnValue(true); - const showMock = jest - .spyOn(Modal.prototype, "show"); + const showMock = jest.spyOn(Modal.prototype, "show"); const resetButtonStyle = jest.fn(); const wrapper = shallowMount(modal, { @@ -169,7 +166,6 @@ describe("modal.vue", () => { // Assert expect(showMock).toHaveBeenCalled(); - }); it("Should call bootstrap Modal method 'hide' when calling 'closeModal'", async () => { @@ -181,8 +177,7 @@ describe("modal.vue", () => { useIsFormDirty.mockReturnValue(true); useIsFormValid.mockReturnValue(true); - const hideMock = jest - .spyOn(Modal.prototype, "hide"); + const hideMock = jest.spyOn(Modal.prototype, "hide"); const resetButtonStyle = jest.fn(); const wrapper = shallowMount(modal, { @@ -200,7 +195,6 @@ describe("modal.vue", () => { // Assert expect(hideMock).toHaveBeenCalled(); - }); - + });