Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • web-et-numerique/factory/llle_project/ecolyo
1 result
Select Git revision
  • build
  • build-dev
  • build-test
  • dev
  • lint/testing-libraby-plugin
  • master
  • renovate/copy-webpack-plugin-13.x
  • renovate/couchdb-3.x
  • renovate/cozy-client-49.x
  • renovate/cozy-device-helper-3.x
  • renovate/cozy-flags-4.x
  • renovate/cozy-harvest-lib-32.x
  • renovate/cozy-harvest-lib-9.x
  • renovate/cozy-realtime-5.x
  • renovate/cozy-scripts-8.x
  • renovate/devdependencies-(non-major)
  • renovate/eslint-9.x
  • renovate/eslint-config-prettier-10.x
  • renovate/eslint-plugin-testing-library-7.x
  • renovate/major-react-monorepo
  • renovate/major-react-router-monorepo
  • renovate/major-typescript-eslint-monorepo
  • renovate/react-19.x
  • renovate/react-dom-19.x
  • renovate/react-inspector-6.x
  • renovate/sass-loader-16.x
  • 0.1.0
  • 0.1.1
  • 0.1.2
  • 0.1.6
  • 0.1.7
  • 1.0.2
  • 1.0.3
  • 1.0.5
  • 1.0.6
  • 1.0.7
  • 1.0.8
  • 1.0.9
  • 1.1.0
  • 1.2.0
  • 1.2.1
  • 1.2.4-beta.1
  • V1.11.0
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.12.0
  • v1.12.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.4-beta.1
  • v1.3.0
  • v1.4.0
  • v1.4.1
  • v1.4.2
  • v1.4.3
  • v1.4.4
  • v1.5.0
  • v1.5.1
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.6.3
  • v1.6.4
  • v1.6.5
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.7.4
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
  • v2.0.0
  • v2.0.1
  • v2.0.2
  • v2.1.0
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.3.0
  • v2.3.1
  • v2.4.0
  • v2.5.0
  • v2.5.1
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.8.0
  • v3.0.0
  • v3.1.0
  • v3.1.1
103 results
Show changes
Commits on Source (3)
...@@ -102,7 +102,7 @@ exports[`MaxConsumptionCard component should be rendered correctly 1`] = ` ...@@ -102,7 +102,7 @@ exports[`MaxConsumptionCard component should be rendered correctly 1`] = `
<div <div
class="dataloadvisualizer-euro text-16-normal electricity" class="dataloadvisualizer-euro text-16-normal electricity"
> >
12,04 17,41
</div> </div>
</div> </div>
</div> </div>
......
...@@ -24,7 +24,7 @@ exports[`Dataload consumption visualizer component should render with single flu ...@@ -24,7 +24,7 @@ exports[`Dataload consumption visualizer component should render with single flu
<div <div
class="dataloadvisualizer-euro text-16-normal electricity" class="dataloadvisualizer-euro text-16-normal electricity"
> >
2,09 3,02
</div> </div>
</div> </div>
</div> </div>
......
...@@ -53,7 +53,7 @@ exports[`DataloadSectionDetail component should render correctly 1`] = ` ...@@ -53,7 +53,7 @@ exports[`DataloadSectionDetail component should render correctly 1`] = `
<div <div
class="dataloadvisualizer-euro text-16-normal electricity" class="dataloadvisualizer-euro text-16-normal electricity"
> >
2,09 3,02
</div> </div>
</div> </div>
`; `;
...@@ -22,7 +22,7 @@ describe('TotalConsumption component', () => { ...@@ -22,7 +22,7 @@ describe('TotalConsumption component', () => {
) )
await waitFor(() => null, { container }) await waitFor(() => null, { container })
expect(container).toMatchSnapshot() expect(container).toMatchSnapshot()
expect(screen.getByText('22,77')).toBeInTheDocument() expect(screen.getByText('32,92')).toBeInTheDocument()
}) })
it('should format multifluid value', async () => { it('should format multifluid value', async () => {
......
...@@ -19,7 +19,7 @@ exports[`TotalConsumption component should be rendered correctly and render euro ...@@ -19,7 +19,7 @@ exports[`TotalConsumption component should be rendered correctly and render euro
<span <span
class="euro-value" class="euro-value"
> >
22,77 32,92
</span> </span>
<span <span
class="euro-symbol" class="euro-symbol"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{ {
"fluidTypeId": 0, "fluidTypeId": 0,
"name": "enedis", "name": "enedis",
"coefficient": 0.174, "coefficient": 0.2516,
"startDate": "2021-08-01T00:00:00.000", "startDate": "2021-08-01T00:00:00.000",
"dataDelayOffset": 3, "dataDelayOffset": 3,
"konnectorConfig": { "konnectorConfig": {
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
{ {
"fluidTypeId": 1, "fluidTypeId": 1,
"name": "egl", "name": "egl",
"coefficient": 0.00319, "coefficient": 0.00349,
"startDate": "2021-01-01T00:00:00.000", "startDate": "2021-01-01T00:00:00.000",
"dataDelayOffset": 5, "dataDelayOffset": 5,
"konnectorConfig": { "konnectorConfig": {
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
{ {
"fluidTypeId": 2, "fluidTypeId": 2,
"name": "grdf", "name": "grdf",
"coefficient": 0.1121, "coefficient": 0.14941,
"startDate": "2021-10-01T00:00:00.000", "startDate": "2021-10-01T00:00:00.000",
"dataDelayOffset": 5, "dataDelayOffset": 5,
"konnectorConfig": { "konnectorConfig": {
......
...@@ -158,22 +158,22 @@ describe('Consumption service', () => { ...@@ -158,22 +158,22 @@ describe('Consumption service', () => {
actualData: [ actualData: [
{ {
date: DateTime.fromISO('2020-08-01T00:00:00.000Z'), date: DateTime.fromISO('2020-08-01T00:00:00.000Z'),
value: 84.44375099999999, value: 118.07354999999998,
state: DataloadState.AGGREGATED_VALID, state: DataloadState.AGGREGATED_VALID,
valueDetail: [ valueDetail: [
{ value: 50.79059999999999, state: DataloadState.VALID }, { value: 73.44203999999999, state: DataloadState.VALID },
{ value: 0.931161, state: DataloadState.VALID }, { value: 1.0187309999999998, state: DataloadState.VALID },
{ value: 32.72199, state: DataloadState.VALID }, { value: 43.612778999999996, state: DataloadState.VALID },
], ],
}, },
{ {
date: DateTime.fromISO('2020-08-02T00:00:00.000Z'), date: DateTime.fromISO('2020-08-02T00:00:00.000Z'),
value: 75.2587935, value: 105.23067499999999,
state: DataloadState.AGGREGATED_VALID, state: DataloadState.AGGREGATED_VALID,
valueDetail: [ valueDetail: [
{ value: 45.266099999999994, state: DataloadState.VALID }, { value: 65.45374, state: DataloadState.VALID },
{ value: 0.8298785, state: DataloadState.VALID }, { value: 0.9079234999999999, state: DataloadState.VALID },
{ value: 29.162815, state: DataloadState.VALID }, { value: 38.86901149999999, state: DataloadState.VALID },
], ],
}, },
{ {
...@@ -186,22 +186,22 @@ describe('Consumption service', () => { ...@@ -186,22 +186,22 @@ describe('Consumption service', () => {
comparisonData: [ comparisonData: [
{ {
date: DateTime.fromISO('2020-07-01T00:00:00.000Z'), date: DateTime.fromISO('2020-07-01T00:00:00.000Z'),
value: 66.0246567, value: 92.31903499999999,
state: DataloadState.AGGREGATED_VALID, state: DataloadState.AGGREGATED_VALID,
valueDetail: [ valueDetail: [
{ value: 39.712019999999995, state: DataloadState.VALID }, { value: 57.422667999999994, state: DataloadState.VALID },
{ value: 0.7280537, state: DataloadState.VALID }, { value: 0.7965227, state: DataloadState.VALID },
{ value: 25.584583, state: DataloadState.VALID }, { value: 34.099844299999994, state: DataloadState.VALID },
], ],
}, },
{ {
date: DateTime.fromISO('2020-07-02T00:00:00.000Z'), date: DateTime.fromISO('2020-07-02T00:00:00.000Z'),
value: 69.05641589999999, value: 96.558195,
state: DataloadState.AGGREGATED_VALID, state: DataloadState.AGGREGATED_VALID,
valueDetail: [ valueDetail: [
{ value: 41.53554, state: DataloadState.VALID }, { value: 60.059436, state: DataloadState.VALID },
{ value: 0.7614849, state: DataloadState.VALID }, { value: 0.8330979000000001, state: DataloadState.VALID },
{ value: 26.759391, state: DataloadState.VALID }, { value: 35.6656611, state: DataloadState.VALID },
], ],
}, },
{ {
...@@ -227,22 +227,22 @@ describe('Consumption service', () => { ...@@ -227,22 +227,22 @@ describe('Consumption service', () => {
actualData: [ actualData: [
{ {
date: DateTime.fromISO('2020-08-01T00:00:00.000Z'), date: DateTime.fromISO('2020-08-01T00:00:00.000Z'),
value: 84.44375099999999, value: 118.07354999999998,
state: DataloadState.AGGREGATED_VALID, state: DataloadState.AGGREGATED_VALID,
valueDetail: [ valueDetail: [
{ value: 50.79059999999999, state: DataloadState.VALID }, { value: 73.44203999999999, state: DataloadState.VALID },
{ value: 0.931161, state: DataloadState.VALID }, { value: 1.0187309999999998, state: DataloadState.VALID },
{ value: 32.72199, state: DataloadState.VALID }, { value: 43.612778999999996, state: DataloadState.VALID },
], ],
}, },
{ {
date: DateTime.fromISO('2020-08-02T00:00:00.000Z'), date: DateTime.fromISO('2020-08-02T00:00:00.000Z'),
value: 75.2587935, value: 105.23067499999999,
state: DataloadState.AGGREGATED_VALID, state: DataloadState.AGGREGATED_VALID,
valueDetail: [ valueDetail: [
{ value: 45.266099999999994, state: DataloadState.VALID }, { value: 65.45374, state: DataloadState.VALID },
{ value: 0.8298785, state: DataloadState.VALID }, { value: 0.9079234999999999, state: DataloadState.VALID },
{ value: 29.162815, state: DataloadState.VALID }, { value: 38.86901149999999, state: DataloadState.VALID },
], ],
}, },
{ {
...@@ -305,7 +305,7 @@ describe('Consumption service', () => { ...@@ -305,7 +305,7 @@ describe('Consumption service', () => {
mockFetchFluidData.mockResolvedValueOnce(mockFetchDataActual) mockFetchFluidData.mockResolvedValueOnce(mockFetchDataActual)
mockFetchFluidData.mockResolvedValueOnce(mockFetchDataComparison) mockFetchFluidData.mockResolvedValueOnce(mockFetchDataComparison)
} }
const expectedResult = 84.44375099999999 const expectedResult = 118.07354999999998
const result = await consumptionDataManager.getMaxLoad({ const result = await consumptionDataManager.getMaxLoad({
maxTimePeriod: mockTimePeriod, maxTimePeriod: mockTimePeriod,
timeStep: TimeStep.DAY, timeStep: TimeStep.DAY,
......
...@@ -24,9 +24,9 @@ describe('performanceIndicator service', () => { ...@@ -24,9 +24,9 @@ describe('performanceIndicator service', () => {
it('should return the current timePeriod and the comparison timePeriod for all timeStep', () => { it('should return the current timePeriod and the comparison timePeriod for all timeStep', () => {
let expectedResult: PerformanceIndicator = { let expectedResult: PerformanceIndicator = {
value: 5.7911, value: 7.88495,
compareValue: 7.84615, compareValue: 11.03678,
percentageVariation: -0.26191826564620857, percentageVariation: -0.28557514057542144,
} }
let result = let result =
performanceIndicatorService.aggregatePerformanceIndicators( performanceIndicatorService.aggregatePerformanceIndicators(
...@@ -48,9 +48,9 @@ describe('performanceIndicator service', () => { ...@@ -48,9 +48,9 @@ describe('performanceIndicator service', () => {
}, },
] ]
expectedResult = { expectedResult = {
value: 1.8675999999999997, value: 2.6556,
compareValue: 5.26785, compareValue: 7.60035,
percentageVariation: -0.6454720616570329, percentageVariation: -0.6505950383863901,
} }
result = result =
performanceIndicatorService.aggregatePerformanceIndicators( performanceIndicatorService.aggregatePerformanceIndicators(
...@@ -77,9 +77,9 @@ describe('performanceIndicator service', () => { ...@@ -77,9 +77,9 @@ describe('performanceIndicator service', () => {
}, },
] ]
expectedResult = { expectedResult = {
compareValue: 7.84615, compareValue: 11.03678,
percentageVariation: -0.48368308023680406, percentageVariation: -0.5135401811035466,
value: 4.0511, value: 5.368949999999999,
} }
result = result =
performanceIndicatorService.aggregatePerformanceIndicators( performanceIndicatorService.aggregatePerformanceIndicators(
...@@ -106,7 +106,7 @@ describe('performanceIndicator service', () => { ...@@ -106,7 +106,7 @@ describe('performanceIndicator service', () => {
}, },
] ]
expectedResult = { expectedResult = {
value: 9.2711, value: 12.91695,
compareValue: 0, compareValue: 0,
percentageVariation: Infinity, percentageVariation: Infinity,
} }
...@@ -125,7 +125,7 @@ describe('performanceIndicator service', () => { ...@@ -125,7 +125,7 @@ describe('performanceIndicator service', () => {
}, },
] ]
expectedResult = { expectedResult = {
value: 5.22, value: 7.548,
compareValue: 0, compareValue: 0,
percentageVariation: Infinity, percentageVariation: Infinity,
} }
...@@ -145,7 +145,7 @@ describe('performanceIndicator service', () => { ...@@ -145,7 +145,7 @@ describe('performanceIndicator service', () => {
] ]
expectedResult = { expectedResult = {
value: 0, value: 0,
compareValue: 2.61, compareValue: 3.774,
percentageVariation: -1, percentageVariation: -1,
} }
result = result =
......