Removing old commented code

This commit is contained in:
Michaela Brydon 2024-08-27 13:24:15 -04:00
parent a0383c4106
commit a04cf58168

View file

@ -44,10 +44,6 @@ function getMountedComponent(mainInitialState = {}, initialData = {}, methodToRu
}); });
mountOptions.global.stubs = { mountOptions.global.stubs = {
// siteFooter: footerStub,
// siteHeader: headerStub,
// vehicleBanner: vehicleBannerStub,
// addToCalendar: addToCalendarStub
calendarModalQuestion: calendarModalQuestionStub calendarModalQuestion: calendarModalQuestionStub
}; };
@ -69,9 +65,9 @@ function getMountedComponent(mainInitialState = {}, initialData = {}, methodToRu
// const apiResponses = { // const apiResponses = {
// supportingItems: [] // supportingItems: []
// }; // };
//const apiPromise = Promise.resolve(apiResponses); // const apiPromise = Promise.resolve(apiResponses);
// settleAllPromises.mockImplementation(() => apiPromise); // settleAllPromises.mockImplementation(() => apiPromise);
//fetchCmsContentForPage.mockImplementation(() => Promise.resolve()); // fetchCmsContentForPage.mockImplementation(() => Promise.resolve());
const wrapper = shallowMount(addToCalendar, mountOptions); const wrapper = shallowMount(addToCalendar, mountOptions);
wrapper.vm.$refs.calendarModalQuestion.openModal = jest.fn(); wrapper.vm.$refs.calendarModalQuestion.openModal = jest.fn();