Skip to content

Commit 3a21298

Browse files
committed
💚 Fix unit tests
1 parent d22a697 commit 3a21298

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/features/simulations/__tests__/create-poll-simulation.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ describe('Given a NGC user', () => {
353353

354354
expect(createdSimulation).toEqual({
355355
...payload,
356+
extendedSituation: null,
356357
createdAt: expect.any(Date),
357358
date: expect.any(Date),
358359
updatedAt: expect.any(Date),
@@ -622,7 +623,7 @@ describe('Given a NGC user', () => {
622623
templateId: 122,
623624
params: {
624625
ORGANISATION_NAME: organisationName,
625-
DETAILED_VIEW_URL: `https://nosgestesclimat.fr/organisations/${organisationSlug}/resultats-detailles?mtm_campaign=email-automatise&mtm_kwd=orga-invite-campagne`,
626+
DETAILED_VIEW_URL: `https://nosgestesclimat.fr/organisations/${organisationSlug}/campagnes/${pollSlug}?mtm_campaign=email-automatise&mtm_kwd=orga-invite-campagne`,
626627
SIMULATION_URL: `https://nosgestesclimat.fr/fin?sid=${payload.id}&mtm_campaign=email-automatise&mtm_kwd=fin-retrouver-simulation`,
627628
},
628629
},
@@ -713,7 +714,7 @@ describe('Given a NGC user', () => {
713714
templateId: 122,
714715
params: {
715716
ORGANISATION_NAME: organisationName,
716-
DETAILED_VIEW_URL: `https://preprod.nosgestesclimat.fr/organisations/${organisationSlug}/resultats-detailles?mtm_campaign=email-automatise&mtm_kwd=orga-invite-campagne`,
717+
DETAILED_VIEW_URL: `https://preprod.nosgestesclimat.fr/organisations/${organisationSlug}/campagnes/${pollSlug}?mtm_campaign=email-automatise&mtm_kwd=orga-invite-campagne`,
717718
SIMULATION_URL: `https://preprod.nosgestesclimat.fr/fin?sid=${payload.id}&mtm_campaign=email-automatise&mtm_kwd=fin-retrouver-simulation`,
718719
},
719720
},
@@ -762,7 +763,7 @@ describe('Given a NGC user', () => {
762763
templateId: 123,
763764
params: {
764765
ORGANISATION_NAME: organisationName,
765-
DETAILED_VIEW_URL: `https://nosgestesclimat.fr/organisations/${organisationSlug}/resultats-detailles?mtm_campaign=email-automatise&mtm_kwd=orga-invite-campagne`,
766+
DETAILED_VIEW_URL: `https://nosgestesclimat.fr/organisations/${organisationSlug}/campagnes/${pollSlug}?mtm_campaign=email-automatise&mtm_kwd=orga-invite-campagne`,
766767
SIMULATION_URL: `https://nosgestesclimat.fr/fin?sid=${payload.id}&mtm_campaign=email-automatise&mtm_kwd=fin-retrouver-simulation`,
767768
},
768769
},

src/features/simulations/__tests__/create-simulation.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ describe('Given a NGC user', () => {
262262

263263
expect(createdSimulation).toEqual({
264264
...payload,
265+
extendedSituation: null,
265266
createdAt: expect.any(Date),
266267
date: expect.any(Date),
267268
updatedAt: expect.any(Date),

0 commit comments

Comments
 (0)