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 e76c072
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 === "000325175")
);
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": "SkmWo44Bo9YmawBd13Ul", "_ignored": [Array], "_index": "stocketablissement-test-1.4.0-1712141555122", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "kEmWo44Bo9YmawBd13Uy", "_ignored": [Array], "_index": "stocketablissement-test-1.4.0-1712141555122", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "TEmWo44Bo9YmawBd13Ul", "_ignored": [Array], "_index": "stocketablissement-test-1.4.0-1712141555122", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "kkmWo44Bo9YmawBd13Uy", "_ignored": [Array], "_index": "stocketablissement-test-1.4.0-1712141555122", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "UkmWo44Bo9YmawBd13Ul", "_ignored": [Array], "_index": "stocketablissement-test-1.4.0-1712141555122", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "mEmWo44Bo9YmawBd13Uy", "_index": "stocketablissement-test-1.4.0-1712141555122", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "VEmWo44Bo9YmawBd13Ul", "_ignored": [Array], "_index": "stocketablissement-test-1.4.0-1712141555122", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "mkmWo44Bo9YmawBd13Uy", "_ignored": [Array], "_index": "stock
expect.arrayContaining([
expect.objectContaining({
Expand Down

0 comments on commit e76c072

Please sign in to comment.