From 40d790bc7ec4d2c71517044781650f82dab5459a Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 16 Sep 2022 14:56:26 -0400 Subject: [PATCH] add footer to cmscontent --- src/layouts/estimate/estimate.spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/layouts/estimate/estimate.spec.js b/src/layouts/estimate/estimate.spec.js index 1843670ec..f8d962543 100644 --- a/src/layouts/estimate/estimate.spec.js +++ b/src/layouts/estimate/estimate.spec.js @@ -166,6 +166,7 @@ function setupMocks({ groupName = "estimate", cmsQuestionText = "Let's get your VIN. Or we can look it up for you!", cmsAnswers = [{ Name: "Provide my VIN manually Most specific to your vehicle" }, { Name: "Provide my license plate # Most accurate VIN match" }, { Name: "Provide my home address Most convenient VIN match" }], + funnelFooterWidget = { ForwardButtonText: "test txt" }, mountOptionsMockData = { router: { navigate: jest.fn(), @@ -179,11 +180,13 @@ function setupMocks({ const cmsContent = { groupName: groupName, QuestionText: cmsQuestionText, - Answers: cmsAnswers + Answers: cmsAnswers, + FunnelFooterWidget: funnelFooterWidget }; - const apiPromise = Promise.resolve(cmsContent); + const apiPromise = Promise.resolve({ cmsContent }); settleAllPromises.mockImplementation(() => apiPromise); + //fetchCmsContentForPage.mockImplementation(() => {reultMap: } cmsContent); fetchCmsContentForPage.mockImplementation(() => Promise.resolve()); const mountOptions = getMountOptions({ ...mountOptionsMockData, mixins: [baseMixin] });