Skip to content

fix(lbac-2328): nettoyage de la collection application #5530

fix(lbac-2328): nettoyage de la collection application

fix(lbac-2328): nettoyage de la collection application #5530

Triggered via pull request January 9, 2025 10:23
Status Failure
Total duration 3m 31s
Artifacts

preview.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 warnings
src/services/emails.service.test.ts > email blaklist events > Unsubscribed variation events should register correct origin with (unsubscribed) reason: server/src/services/emails.service.test.ts#L120
AssertionError: expected { …(4) } to deeply equal ObjectContaining{…} - Expected + Received - ObjectContaining { - "blacklisting_origin": "candidature_spontanee_candidat (unsubscribed)", + Object { + "_id": "677fa41887da123fafeb780d", + "blacklisting_origin": "unknown (unsubscribed)", + "created_at": 2025-01-09T10:25:28.502Z, "email": "[email protected]", } ❯ src/services/emails.service.test.ts:120:26
src/http/controllers/v2/applications.controller.v2.test.ts > POST /v2/application > Return 202 and create an application using a recruter lba: server/src/http/controllers/v2/applications.controller.v2.test.ts#L144
AssertionError: expected { …(22) } to deeply equal { _id: Any<ObjectId>, …(25) } - Expected + Received Object { "_id": Any<ObjectId>, "applicant_attachment_name": "cv.pdf", - "applicant_email": "[email protected]", - "applicant_first_name": "Jean", "applicant_id": "677fa4251d620d4778fc4d18", - "applicant_last_name": "Dupont", "applicant_message_to_company": "", - "applicant_phone": "0101010101", "caller": "Un super Partenaire", "company_address": "126 RUE DE L UNIVERSITE, 75007 Paris", "company_email": "[email protected]", "company_feedback": null, "company_naf": "Administration publique générale", "company_name": "ASSEMBLEE NATIONALE", "company_phone": null, "company_recruitment_intention": null, "company_siret": "11000001500013", "created_at": Any<Date>, "job_id": "677fa4231d620d4778fc4d14", "job_origin": "recruteurs_lba", "job_searched_by_user": null, "job_title": "ASSEMBLEE NATIONALE", "last_update_at": Any<Date>, "scan_status": "WAITING_FOR_SCAN", "to_applicant_message_id": null, "to_company_message_id": null, } ❯ src/http/controllers/v2/applications.controller.v2.test.ts:144:25
src/http/controllers/v2/applications.controller.v2.test.ts > POST /v2/application > Return 202 and create an application using a recruiter: server/src/http/controllers/v2/applications.controller.v2.test.ts#L203
AssertionError: expected { …(22) } to deeply equal { _id: Any<ObjectId>, …(25) } - Expected + Received Object { "_id": Any<ObjectId>, "applicant_attachment_name": "cv.pdf", - "applicant_email": "[email protected]", - "applicant_first_name": "Jean", "applicant_id": "677fa4251d620d4778fc4d19", - "applicant_last_name": "Dupont", "applicant_message_to_company": "", - "applicant_phone": "0101010101", "caller": "Un super Partenaire", "company_address": "Paris", "company_email": "[email protected]", "company_feedback": null, "company_naf": "", "company_name": "ASSEMBLEE NATIONALE", "company_phone": "0300000000", "company_recruitment_intention": null, "company_siret": "11000001500013", "created_at": Any<Date>, "job_id": "677fa4231d620d4778fc4d16", "job_origin": "offres_emploi_lba", "job_searched_by_user": null, "job_title": "Opérations administratives", "last_update_at": Any<Date>, "scan_status": "WAITING_FOR_SCAN", "to_applicant_message_id": null, "to_company_message_id": null, } ❯ src/http/controllers/v2/applications.controller.v2.test.ts:203:25
tests / Tests
Process completed with exit code 1.
Add deploy comment
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
tests / Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636