From b6fa9fc04624e3702c1804e3d0b537112e11a174 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 17 Mar 2025 10:13:33 -0400 Subject: [PATCH] CASH-152: updates to schedule unit tests --- src/layouts/schedule/schedule.spec.js | 29 +-------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/layouts/schedule/schedule.spec.js b/src/layouts/schedule/schedule.spec.js index 95ad63a40..1c615a961 100644 --- a/src/layouts/schedule/schedule.spec.js +++ b/src/layouts/schedule/schedule.spec.js @@ -635,34 +635,6 @@ describe("schedule.vue...", () => { expect.anything() ); }); - - test("if no EARLY BIRD supporting item, then updateSupportingItems should NOT call store action", async () => { - // Arrange - store.getters.order.serviceLocation.appointmentType = "Mobile"; - store.getters.lineItems.supportingItems = []; - const { wrapper } = setupMocks({}); - wrapper.vm.dispatchStoreAction = jest.fn(() => { - return { - data: [], - }; - }); - wrapper.vm.mobilePremiumAppointmentFee = 14.99; - wrapper.setData({ - selectedTimeSlot: { - date: "2019-01-01", - startTime: "09:00", - endTime: "10:00", - routeCode: null, - isPremiumAppointment: false, - }, - }); - - // Act - await wrapper.vm.updateSupportingItems(); - - // Assert - expect(wrapper.vm.dispatchStoreAction).not.toBeCalled(); - }); }); const mockCmsContent = {}; @@ -690,6 +662,7 @@ function setupMocks({ customMountOptions }) { wrapper.vm.setCmsContent = jest.fn(); wrapper.vm.$refs.datePicker.initializeComponent = jest.fn(); + wrapper.vm.$refs.datePickerForPricingByDay.initializeComponent = jest.fn(); wrapper.vm.$refs.locationAlerts.initializeComponent = jest.fn(); wrapper.vm.$refs.navbar.updateButtonText = jest.fn(); wrapper.vm.$refs.timeSlotModalQuestion.openModal = jest.fn();