From cdd34b7dafda98ee99ef4642b8f1f5a0a883429f Mon Sep 17 00:00:00 2001
From: "guilhem.carron" <gcarron@grandlyon.com>
Date: Thu, 20 Jan 2022 14:38:36 +0100
Subject: [PATCH] fix test

---
 .../Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/components/Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx b/src/components/Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx
index 39dd99bfd..299d2a4da 100644
--- a/src/components/Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx
+++ b/src/components/Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx
@@ -10,7 +10,7 @@ import {
   mockEnedisMonthlyAnalysisArray,
 } from '../../../tests/__mocks__/enedisMonthlyAnalysisData.mock'
 import { PerformanceIndicator } from 'models'
-import { allFluidPrices } from '../../../tests/__mocks__/fluidPrice.mock'
+import { allLastFluidPrices } from '../../../tests/__mocks__/fluidPrice.mock'
 
 jest.mock('cozy-ui/transpiled/react/I18n', () => {
   return {
@@ -73,7 +73,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
 
   it('should be rendered correctly when isHalfHourActivated is false', async () => {
     mockCheckDoctypeEntries.mockResolvedValueOnce(false)
-    mockGetPrices.mockResolvedValue(allFluidPrices[0])
+    mockGetPrices.mockResolvedValue(allLastFluidPrices[0])
     const wrapper = mount(
       <ElecHalfHourMonthlyAnalysis
         analysisDate={DateTime.fromISO('2021-07-01T00:00:00.000Z', {
@@ -94,7 +94,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
     mockAggregateValuesToDataLoad.mockResolvedValueOnce(
       mockDataLoadEnedisAnalysis
     )
-    mockGetPrices.mockResolvedValue(allFluidPrices[0])
+    mockGetPrices.mockResolvedValue(allLastFluidPrices[0])
 
     const wrapper = mount(
       <ElecHalfHourMonthlyAnalysis
@@ -116,7 +116,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
     mockAggregateValuesToDataLoad.mockResolvedValueOnce(
       mockDataLoadEnedisAnalysis
     )
-    mockGetPrices.mockResolvedValue(allFluidPrices[0])
+    mockGetPrices.mockResolvedValue(allLastFluidPrices[0])
     const wrapper = mount(
       <ElecHalfHourMonthlyAnalysis
         analysisDate={DateTime.fromISO('2021-07-01T00:00:00.000Z', {
@@ -142,7 +142,7 @@ describe('ElecHalfHourMonthlyAnalysis component', () => {
     mockAggregateValuesToDataLoad.mockResolvedValueOnce(
       mockDataLoadEnedisAnalysis
     )
-    mockGetPrices.mockResolvedValue(allFluidPrices[0])
+    mockGetPrices.mockResolvedValue(allLastFluidPrices[0])
 
     const wrapper = mount(
       <ElecHalfHourMonthlyAnalysis
-- 
GitLab