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();