diff --git a/src/components/Analysis/ProfileComparator/ProfileComparator.spec.tsx b/src/components/Analysis/ProfileComparator/ProfileComparator.spec.tsx index 6f8997cf4802ee46ee3accbf6fb15ef2a6b95f55..e3d8ffd7a01147f9dda10e4b72c7031014aec587 100644 --- a/src/components/Analysis/ProfileComparator/ProfileComparator.spec.tsx +++ b/src/components/Analysis/ProfileComparator/ProfileComparator.spec.tsx @@ -46,7 +46,6 @@ const store = createMockEcolyoStore({ analysis: mockAnalysisState, }) -const allFluids = [FluidType.ELECTRICITY, FluidType.GAS, FluidType.MULTIFLUID] const performanceIndicator = { compareValue: 160.42797399999998, percentageVariation: 0.026592126632478563, @@ -77,7 +76,6 @@ describe('AnalysisConsumption component', () => { <ProfileComparator aggregatedPerformanceIndicator={performanceIndicator} performanceIndicators={performanceIndicators} - fluidsWithData={allFluids} /> </Provider> ) @@ -97,7 +95,6 @@ describe('AnalysisConsumption component', () => { <ProfileComparator aggregatedPerformanceIndicator={mockAggregatedPerformanceIndicator} performanceIndicators={performanceIndicators} - fluidsWithData={allFluids} /> </Provider> ) @@ -116,7 +113,6 @@ describe('AnalysisConsumption component', () => { <ProfileComparator aggregatedPerformanceIndicator={mockAggregatedPerformanceIndicator} performanceIndicators={performanceIndicators} - fluidsWithData={allFluids} /> </Provider> ) @@ -131,7 +127,6 @@ describe('AnalysisConsumption component', () => { <ProfileComparator aggregatedPerformanceIndicator={performanceIndicator} performanceIndicators={performanceIndicators} - fluidsWithData={allFluids} /> </Provider> ) @@ -161,7 +156,6 @@ describe('AnalysisConsumption component', () => { <ProfileComparator aggregatedPerformanceIndicator={performanceIndicator} performanceIndicators={performanceIndicators} - fluidsWithData={allFluids} /> </Provider> ) @@ -188,7 +182,6 @@ describe('AnalysisConsumption component', () => { <ProfileComparator aggregatedPerformanceIndicator={performanceIndicator} performanceIndicators={performanceIndicators} - fluidsWithData={allFluids} /> </Provider> ) @@ -207,7 +200,6 @@ describe('AnalysisConsumption component', () => { <ProfileComparator aggregatedPerformanceIndicator={performanceIndicator} performanceIndicators={performanceIndicators} - fluidsWithData={allFluids} /> </Provider> ) diff --git a/src/components/CommonKit/Card/StyledCard.spec.tsx b/src/components/CommonKit/Card/StyledCard.spec.tsx index 26d2bc83d1bd8f790c58d7c7053b707352ebea61..0ef9813d20279296deef175ef9da1b8e0f11dce4 100644 --- a/src/components/CommonKit/Card/StyledCard.spec.tsx +++ b/src/components/CommonKit/Card/StyledCard.spec.tsx @@ -5,17 +5,23 @@ import StyledCard from './StyledCard' describe('StyledCard component test', () => { it('should render correctly Electricity StyledCard', () => { - const wrapper = mount(<StyledCard fluidType={FluidType.ELECTRICITY} />) + const wrapper = mount( + <StyledCard fluidType={FluidType.ELECTRICITY}>children</StyledCard> + ) expect(wrapper.getElement()).toMatchSnapshot() }) it('should render correctly Water StyledCard', () => { - const wrapper = mount(<StyledCard fluidType={FluidType.WATER} />) + const wrapper = mount( + <StyledCard fluidType={FluidType.WATER}>children</StyledCard> + ) expect(wrapper.getElement()).toMatchSnapshot() }) it('should render correctly Gas StyledCard', () => { - const wrapper = mount(<StyledCard fluidType={FluidType.GAS} />) + const wrapper = mount( + <StyledCard fluidType={FluidType.GAS}>children</StyledCard> + ) expect(wrapper.getElement()).toMatchSnapshot() }) }) diff --git a/src/components/CommonKit/Card/__snapshots__/StyledCard.spec.tsx.snap b/src/components/CommonKit/Card/__snapshots__/StyledCard.spec.tsx.snap index 52bb45d8bd676b5fb217f3ea9195340af328efaf..520b007502483267ab35c3da4be31661e364b39d 100644 --- a/src/components/CommonKit/Card/__snapshots__/StyledCard.spec.tsx.snap +++ b/src/components/CommonKit/Card/__snapshots__/StyledCard.spec.tsx.snap @@ -3,17 +3,23 @@ exports[`StyledCard component test should render correctly Electricity StyledCard 1`] = ` <StyledCard fluidType={0} -/> +> + children +</StyledCard> `; exports[`StyledCard component test should render correctly Gas StyledCard 1`] = ` <StyledCard fluidType={2} -/> +> + children +</StyledCard> `; exports[`StyledCard component test should render correctly Water StyledCard 1`] = ` <StyledCard fluidType={1} -/> +> + children +</StyledCard> `;