diff --git a/src/components/ContainerComponents/Header/Header.tsx b/src/components/ContainerComponents/Header/Header.tsx index 459594cacc1b920e5c3c271af45b1163a110f3e6..748daf599f8767e0f4b9c40213118551b8863338 100644 --- a/src/components/ContainerComponents/Header/Header.tsx +++ b/src/components/ContainerComponents/Header/Header.tsx @@ -1,7 +1,6 @@ import React, { useEffect, useRef, useContext } from 'react' import { translate } from 'cozy-ui/react/I18n' import { history } from 'components/ContainerComponents/ViewContainer/ViewContainer' -//import { withClient, Client } from 'cozy-client' import { ScreenType } from 'enum/screen.enum' import { AppContext } from 'components/Contexts/AppContextProvider' import BackArrowIcon from 'assets/icons/ico/back-arrow.svg' diff --git a/test/services/ConsumptionDataManager.spec.ts b/test/services/ConsumptionDataManager.spec.ts index c4d4a68cc224496c2ee8c0c693db245a7f936a99..c73f138014c38cee3f17b960ae56962317d15d8e 100644 --- a/test/services/ConsumptionDataManager.spec.ts +++ b/test/services/ConsumptionDataManager.spec.ts @@ -1,5 +1,14 @@ 'use strict' //import ConsumptionDataManager from '../../src/services/consumptionDataManagerService' +/*import { DateTime } from 'luxon' +import { TimeStep } from '../../src/services/dataConsumptionContracts' + +// client needs to be mocked correctely to test the CDM +const mockClient = { + query: jest.fn(), + get: jest.fn(), +}*/ + //jest.mock('../../src/services/consumptionDataFormatterService') describe('Consumption Data Manager', () => { diff --git a/test/services/ConsumptionDataValidator.spec.ts b/test/services/ConsumptionDataValidator.spec.ts index 00723406668788e24302231a60360854acbbdfb1..4dfbe0ed6ab955b2e72efbf5439a2a0b7bcae4b9 100644 --- a/test/services/ConsumptionDataValidator.spec.ts +++ b/test/services/ConsumptionDataValidator.spec.ts @@ -18,13 +18,20 @@ consumptionDataValidator.ValidateGetGraphData( fluidTypes, compareTimePeriod ) -*/ + + const yearTimeStep = TimeStep.MONTH + + const sumReducer = (acc, dataLoad) => acc + dataLoad.value*/ it('matching fluidTypes and TimeStep', () => { const timePeriod = { startDate: DateTime.local(2018, 1, 1), endDate: DateTime.local(2018, 1, 2), } + /*const compareTimePeriod = { + startDate: DateTime.local(2018, 1, 2), + endDate: DateTime.local(2018, 1, 3), + }*/ expect( consumptionDataValidator.ValidateGetGraphData( diff --git a/test/services/QueryRunner.spec.ts b/test/services/QueryRunner.spec.ts index aa73104abeb16e1bdce1d62337fe21396548b196..132c2849aa3c41784309a95ff9c8ffbe3ec0bc0e 100644 --- a/test/services/QueryRunner.spec.ts +++ b/test/services/QueryRunner.spec.ts @@ -1,5 +1,13 @@ 'use strict' //import QuerryRunner from '../../src/services/queryRunnerService' +/*import { DateTime } from 'luxon' +import { TimeStep } from '../../src/services/dataConsumptionContracts' + +// client needs to be mocked correctely to test the CDM +const mockClient = { + query: jest.fn(), + get: jest.fn(), +}*/ describe('Querry Runner', () => { beforeEach(() => {