fix: Fix sur le format des dates dans les exports copier/coller #949
Annotations
4 errors
src/utils/export-strategies/CertisudExporter.test.js > CertisudExporter > groups features by CULTURE, ENGAGEMENT and DATE:
src/utils/export-strategies/CertisudExporter.test.js#L70
AssertionError: expected [ [ …(6) ], [ …(6) ], [ …(6) ], …(4) ] to deeply equal [ [ …(6) ], [ …(6) ], [ …(6) ], …(4) ]
- Expected
+ Received
Array [
Array [
"Cultures en place lors du contrôle",
"Surfaces déclarées",
"Autres infos (ilot.parcelle, semis, etc.)",
"Classement proposé",
"Depuis",
"Id. Parcelles",
],
Array [
"[ERREUR] culture absente",
0.753054443359375,
"4.1",
"",
"",
"6",
],
Array [
"[ERREUR] culture inconnue (01.19.99)",
0.753054443359375,
"3.1",
"",
"",
"5",
],
Array [
"Luzerne",
1.50610888671875,
"1.1 (nom personnalisé), Visitée ; 1.2, Prélèvement effectué, À risque",
"C1",
- 2023-01-01T00:00:00.000Z,
+ "01/01/2023",
"1,2",
],
Array [
"Luzerne",
0.753054443359375,
"2.1, 0.70ha, Réduction de conversion (Dérogation acceptée)",
"AB",
- 2021-01-01T00:00:00.000Z,
+ "01/01/2021",
"3",
],
Array [
"Trèfle",
0.753054443359375,
"2.1, 4 feuilles, semis le 01/03/2023, 0.30ha, Réduction de conversion (Dérogation acceptée)",
"AB",
- 2021-01-01T00:00:00.000Z,
+ "01/01/2021",
"3",
],
Array [
"Trèfle",
0.753054443359375,
"2.2, 4 feuilles, semis le 01/03/2023",
"AB",
- 2015-01-01T00:00:00.000Z,
+ "01/01/2015",
"4",
],
]
❯ src/utils/export-strategies/CertisudExporter.test.js:70:31
|
src/utils/export-strategies/ControlUnionExporter.test.js > ControlUnionExporter > list by features:
src/utils/export-strategies/ControlUnionExporter.test.js#L85
AssertionError: expected [ [ …(8) ], …(6) ] to deeply equal [ [ …(8) ], …(6) ]
- Expected
+ Received
Array [
Array [
"Identification (références cadastrales)",
"Production",
"Quantité",
"Date de début de conversion",
"Niveau de la parcelle au jour de l'audit (C1/C2/C3/AB)",
"Autres infos",
"Id. Parcelle",
"Code culture",
],
Array [
"",
"Luzerne",
0.753054443359375,
- 2023-01-01T00:00:00.000Z,
+ "01/01/2023",
"C1",
"1.1 (nom personnalisé), Visitée",
"1",
"01.19.10.8",
],
Array [
"",
"Luzerne",
0.753054443359375,
- 2023-01-01T00:00:00.000Z,
+ "01/01/2023",
"C1",
"1.2, Prélèvement effectué, À risque",
"2",
"01.19.10.8",
],
Array [
"",
"Luzerne",
0.753054443359375,
- 2021-01-01T00:00:00.000Z,
+ "01/01/2021",
"AB",
"2.1, 0.70ha / 01.19.10.7 Trèfle, 4 feuilles, semis le 01/03/2023, 0.30ha, Réduction de conversion (Dérogation acceptée)",
"3",
"01.19.10.8",
],
Array [
"",
"Trèfle",
0.753054443359375,
- 2015-01-01T00:00:00.000Z,
+ "01/01/2015",
"AB",
"2.2, 4 feuilles, semis le 01/03/2023",
"4",
"01.19.10.7",
],
Array [
"",
"[ERREUR] culture inconnue (01.19.99)",
0.753054443359375,
"",
"",
"3.1, 01.19.99 Culture inconnue",
"5",
"",
],
Array [
"",
"[ERREUR] culture absente",
0.753054443359375,
"",
"",
"4.1",
"6",
"",
],
]
❯ src/utils/export-strategies/ControlUnionExporter.test.js:85:31
|
src/utils/export-strategies/DefaultExporter.test.js > DefaultExporter > list by features:
src/utils/export-strategies/DefaultExporter.test.js#L98
AssertionError: expected [ …(7) ] to deeply equal [ …(7) ]
- Expected
+ Received
Array [
Array [
"Identifiant CartoBio",
"N°Ilot",
"N°Parcelle",
"Surfaces graphique (ha)",
"Code culture",
"Libellé culture",
"PACAGE",
"Niveau de conversion",
"Date de conversion",
"Pac / Hors Pac / Cueillette",
"Commentaire agriculteur",
"Notes d'audit",
],
Array [
"1",
"1",
"1",
0.753054443359375,
"01.19.10.8",
"Luzerne",
"",
"C1",
- 2023-01-01T00:00:00.000Z,
+ "01/01/2023",
"",
"Visitée",
"",
],
Array [
"2",
"1",
"2",
0.753054443359375,
"01.19.10.8",
"Luzerne",
"",
"C1",
- 2023-01-01T00:00:00.000Z,
+ "01/01/2023",
"",
"Prélèvement effectué, À risque",
"",
],
Array [
"3",
"2",
"1",
0.753054443359375,
"01.19.10.8",
"Luzerne",
"",
"AB",
- 2021-01-01T00:00:00.000Z,
+ "01/01/2021",
"",
"0.70ha / 01.19.10.7 Trèfle, 4 feuilles, semis le 01/03/2023, 0.30ha, Réduction de conversion (Dérogation acceptée)",
"",
],
Array [
"4",
"2",
"2",
0.753054443359375,
"01.19.10.7",
"Trèfle",
"",
"AB",
- 2015-01-01T00:00:00.000Z,
+ "01/01/2015",
"",
"4 feuilles, semis le 01/03/2023",
"",
],
Array [
"5",
"3",
"1",
0.753054443359375,
"01.19.99",
"[ERREUR] culture inconnue (01.19.99)",
"",
"",
"",
"",
"",
"",
],
Array [
"6",
"4",
"1",
0.753054443359375,
"",
"[ERREUR] culture absente",
"",
"",
"",
"",
"",
"",
],
]
❯ src/utils/export-strategies/DefaultExporter.test.js:98:31
|
tests
Process completed with exit code 1.
|