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