File tree Expand file tree Collapse file tree 2 files changed +7
-20
lines changed
Expand file tree Collapse file tree 2 files changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,9 @@ export class ProductionENR {
200200 productionElectricite . conso_elec_ac_eclairage +
201201 productionElectricite . conso_elec_ac_auxiliaire ;
202202
203- conso . ep_conso . previous_ep_conso_5_usages -= PREVIOUS_COEFF_EP * conso_elec ;
203+ conso . ep_conso . ep_conso_5_usages -= PREVIOUS_COEFF_EP * conso_elec ;
204204
205- conso . ep_conso . previous_ep_conso_5_usages_m2 = Math . floor (
206- conso . ep_conso . previous_ep_conso_5_usages / Sh
207- ) ;
205+ conso . ep_conso . ep_conso_5_usages_m2 = Math . floor ( conso . ep_conso . ep_conso_5_usages / Sh ) ;
208206 } else {
209207 conso . ep_conso . ep_conso_ecs -= COEFF_EP * productionElectricite . conso_elec_ac_ecs ;
210208 conso . ep_conso . ep_conso_ch -= COEFF_EP * productionElectricite . conso_elec_ac_ch ;
Original file line number Diff line number Diff line change @@ -63,23 +63,12 @@ describe('Open3cl misc unit tests', () => {
6363 ) ;
6464 } ) ;
6565
66- test ( 'should calculate primary conso with coeff 1.9 (since janvier 2026) for dpe: 2313E0840970P ' , async ( ) => {
67- const inputDpe = await getAdemeFileJsonOrDownload ( '2313E0840970P ' ) ;
66+ test ( 'should calculate primary conso with coeff 1.9 (since janvier 2026) for dpe: 2464E1799476F ' , async ( ) => {
67+ const inputDpe = await getAdemeFileJsonOrDownload ( '2464E1799476F ' ) ;
6868 const outputDpe = calcul_3cl ( structuredClone ( inputDpe ) ) ;
69- expect ( outputDpe . logement . sortie . ep_conso . previous_classe_bilan_dpe ) . toBe ( 'A' ) ;
70- expect ( outputDpe . logement . sortie . ep_conso . classe_bilan_dpe ) . toBe ( 'A' ) ;
71- expect ( outputDpe . logement . sortie . ep_conso . classe_bilan_dpe_2026 ) . toBe ( 'A' ) ;
72-
73- expect ( outputDpe . logement . sortie . ep_conso . ep_conso_5_usages ) . toBeLessThan (
74- outputDpe . logement . sortie . ep_conso . previous_ep_conso_5_usages
75- ) ;
76-
77- expect ( outputDpe . logement . sortie . ep_conso . ep_conso_5_usages ) . toBeLessThan (
78- outputDpe . logement . sortie . ep_conso . previous_ep_conso_5_usages
79- ) ;
80-
81- expect ( outputDpe . logement . sortie . ep_conso . ep_conso_5_usages_m2 ) . toBeLessThan (
82- outputDpe . logement . sortie . ep_conso . previous_ep_conso_5_usages_m2
69+ expect ( outputDpe . logement . sortie . ep_conso . previous_ep_conso_5_usages ) . toBeCloseTo (
70+ 44852.95 ,
71+ 0.5
8372 ) ;
8473 } ) ;
8574} ) ;
You can’t perform that action at this time.
0 commit comments