Commit cdd34b7d authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix test

parent 4118d749
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment