From 712ae15099eac15f831290a62a88e91895f7c5f8 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 10 Feb 2026 13:32:13 -0500 Subject: [PATCH] Fix test --- src/layouts/schedule-page/schedule-page.spec.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/layouts/schedule-page/schedule-page.spec.js b/src/layouts/schedule-page/schedule-page.spec.js index ca3a14f0..a418f35e 100644 --- a/src/layouts/schedule-page/schedule-page.spec.js +++ b/src/layouts/schedule-page/schedule-page.spec.js @@ -160,14 +160,14 @@ describe('schedule-page.vue', () => { // Assert expect(arePagePrerequisitesValid).toBeFalsy(); }); - test.skip('should return newShopTimeSlots when getAvailableDatesMethod is called', async () => { + test('should return newShopTimeSlots when getAvailableDatesMethod is called', async () => { // Arrange const { wrapper } = getShallowMountedComponent(); wrapper.vm.selectableDatesData = { days: [] }; const store = useMainStore(); - store.getShopTimeSlots.mockImplementation(() => ({ + store.getShopTimeSlots.mockImplementation(() => Promise.resolve({ data: { estimatedServiceMinutesMinimum: 90, estimatedServiceMinutesMaximum: 120, @@ -212,14 +212,14 @@ describe('schedule-page.vue', () => { estimatedServiceMinutesMaximum: 120 }); }); - test.skip('Should call API service in days of 15 or less when getAvailableDatesMethod is called with large date ranges', async () => { + test('Should call API service in days of 15 or less when getAvailableDatesMethod is called with large date ranges', async () => { // Arrange const { wrapper } = getShallowMountedComponent(); wrapper.vm.selectableDatesData = { days: [] }; const store = useMainStore(); - store.getShopTimeSlots.mockImplementation(() => ({ + store.getShopTimeSlots.mockImplementation(() => Promise.resolve({ data: { estimatedServiceMinutesMinimum: 90, estimatedServiceMinutesMaximum: 120, @@ -233,7 +233,8 @@ describe('schedule-page.vue', () => { '2023-01-01', '2023-03-31', 'Inshop', - '123' + '123', + '43228' ); // Assert