diff --git a/src/components/Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx b/src/components/Analysis/ElecHalfHourMonthlyAnalysis.spec.tsx index 39dd99bfdb869a7cedbeb064bcaf0fda04a7ae39..299d2a4da67c4bdb964de2cc7608efca9c4dc1fe 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