Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Riron committed Apr 3, 2024
1 parent e852b29 commit 980d0be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/__tests__/index.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ describe("Perform indexation", () => {
throw new Error(`${r.warnings}`);
}
expect(r.body.hits.hits).toBeInstanceOf(Array);
expect(r.body.hits.total.value).toEqual(297);
expect(r.body.hits.total.value).toEqual(299);
console.log(
r.body.hits.hits.filter(hit => hit._source.siren === "005410345")
);
expect(r.body.hits.hits).toEqual(

Check failure on line 112 in src/commands/__tests__/index.integration.ts

View workflow job for this annotation

GitHub Actions / search

Perform indexation › index siret data

expect(received).toEqual(expected) // deep equality Expected: ArrayContaining [ObjectContaining {"_source": {"activitePrincipaleEtablissement": "79.06", "activitePrincipaleRegistreMetiersEtablissement": "", "activitePrincipaleUniteLegale": "79.06", "anneeCategorieEntreprise": "", "anneeEffectifsEtablissement": "", "anneeEffectifsUniteLegale": "", "caractereEmployeurEtablissement": "N", "caractereEmployeurUniteLegale": "N", "categorieEntreprise": "", "categorieJuridiqueUniteLegale": "1000", "codeCedex2Etablissement": "", "codeCedexEtablissement": "", "codeCommune2Etablissement": "", "codeCommuneEtablissement": "80001", "codePaysEtranger2Etablissement": "", "codePaysEtrangerEtablissement": "", "codePostal2Etablissement": "", "codePostalEtablissement": "80100", "complementAdresse2Etablissement": "", "complementAdresseEtablissement": "", "dateCreationEtablissement": "2000-09-26", "dateCreationUniteLegale": "", "dateDebut": "1984-12-25", "dateDernierTraitementEtablissement": "", "dateDernierTraitementUniteLegale": "", "denominationUniteLegale": "", "denominationUsuelle1UniteLegale": "", "denominationUsuelle2UniteLegale": "", "denominationUsuelle3UniteLegale": "", "denominationUsuelleEtablissement": "", "distributionSpeciale2Etablissement": "", "distributionSpecialeEtablissement": "", "economieSocialeSolidaireUniteLegale": "", "enseigne1Etablissement": "", "enseigne2Etablissement": "", "enseigne3Etablissement": "", "etablissementSiege": "true", "etatAdministratifEtablissement": "F", "etatAdministratifUniteLegale": "C", "identifiantAssociationUniteLegale": "", "indiceRepetition2Etablissement": "", "indiceRepetitionEtablissement": "", "libelleCedex2Etablissement": "", "libelleCedexEtablissement": "", "libelleCommune2Etablissement": "", "libelleCommuneEtablissement": "ABBEVILLE", "libelleCommuneEtranger2Etablissement": "", "libelleCommuneEtrangerEtablissement": "", "libellePaysEtranger2Etablissement": "", "libellePaysEtrangerEtablissement": "", "libelleVoie2Etablissement": "", "libelleVoieEtablissement": "DE DOULLENS", "nic": "00016", "nicSiegeUniteLegale": "00010", "nomUniteLegale": "DEBRAY", "nomUsageUniteLegale": "", "nombrePeriodesEtablissement": "1", "nombrePeriodesUniteLegale": "1", "nomenclatureActivitePrincipaleEtablissement": "NAP", "nomenclatureActivitePrincipaleUniteLegale": "NAP", "numeroVoie2Etablissement": "", "numeroVoieEtablissement": "", "prenom1UniteLegale": "MICHEL", "prenom2UniteLegale": "", "prenom3UniteLegale": "", "prenom4UniteLegale": "", "prenomUsuelUniteLegale": "MICHEL", "pseudonymeUniteLegale": "", "sexeUniteLegale": "M", "sigleUniteLegale": "", "siren": "000325175", "siret": "00032517500016", "statutDiffusionEtablissement": "O", "statutDiffusionUniteLegale": "O", "trancheEffectifsEtablissement": "", "trancheEffectifsUniteLegale": "", "typeVoie2Etablissement": "", "typeVoieEtablissement": "RTE", "unitePurgeeUniteLegale": "true"}}] Received: [{"_id": "Pt6qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "P96qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "QN6qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "Qd6qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "Qt6qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "Q96qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "RN6qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "Rd6qo44BX8c7qGXLqqmG", "_index": "stocketablissement-test-1.4.0-1712142854641", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "Rt6qo44BX8c7qGXLqqmG", "_ignored": [Array], "
expect.arrayContaining([
expect.objectContaining({
Expand Down

0 comments on commit 980d0be

Please sign in to comment.