This commit is contained in:
Bill Richardson 2026-02-10 13:32:13 -05:00
parent f00644c9f1
commit 712ae15099

View file

@ -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