diff --git a/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts b/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts index ae97535b5..123848436 100644 --- a/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts +++ b/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts @@ -139,9 +139,9 @@ describe("ParticipationWithoutAccount", () => { await flushPromises(); - expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith({ - ...joinEventMock, - }); + expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith( + expect.objectContaining(joinEventMock) + ); const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({ query: FETCH_EVENT_BASIC, @@ -216,9 +216,9 @@ describe("ParticipationWithoutAccount", () => { await flushPromises(); - expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith({ - ...joinEventMock, - }); + expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith( + expect.objectContaining(joinEventMock) + ); const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({ query: FETCH_EVENT_BASIC, @@ -260,9 +260,9 @@ describe("ParticipationWithoutAccount", () => { await flushPromises(); - expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith({ - ...joinEventMock, - }); + expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith( + expect.objectContaining(joinEventMock) + ); await flushPromises(); expect(wrapper.find("form").exists()).toBeTruthy(); expect(wrapper.find(".o-notification--danger").text()).toContain( diff --git a/tests/unit/specs/components/Participation/__snapshots__/ParticipationWithoutAccount.spec.ts.snap b/tests/unit/specs/components/Participation/__snapshots__/ParticipationWithoutAccount.spec.ts.snap index 687ade13d..5ddd3a8ee 100644 --- a/tests/unit/specs/components/Participation/__snapshots__/ParticipationWithoutAccount.spec.ts.snap +++ b/tests/unit/specs/components/Participation/__snapshots__/ParticipationWithoutAccount.spec.ts.snap @@ -64,29 +64,3 @@ exports[`ParticipationWithoutAccount > handles being already a participant 1`] = " `; - -exports[`ParticipationWithoutAccount > renders the participation without account view with minimal data 1`] = ` -"
-
-
-

Request for participation confirmation sent

-

Check your inbox (and your junk mail folder).Your participation will be validated once you click the confirmation link into the email.

- -

You may now close this window, or return to the event's page.

-
-
-
" -`; - -exports[`ParticipationWithoutAccount > renders the warning if the event participation is restricted 1`] = ` -"
-
-
-

Request for participation confirmation sent

-

Check your inbox (and your junk mail folder).Your participation will be validated once you click the confirmation link into the email, and after the organizer manually validates your participation.

- -

You may now close this window, or return to the event's page.

-
-
-
" -`; diff --git a/tests/unit/specs/components/stories/__snapshots__/DateCalendarIconStory.spec.ts.snap b/tests/unit/specs/components/stories/__snapshots__/DateCalendarIconStory.spec.ts.snap index 563c750af..15d1fe82f 100644 --- a/tests/unit/specs/components/stories/__snapshots__/DateCalendarIconStory.spec.ts.snap +++ b/tests/unit/specs/components/stories/__snapshots__/DateCalendarIconStory.spec.ts.snap @@ -3,14 +3,14 @@ exports[`Date Calendar Icon Story > Default 1`] = ` " -
-
+
+
-
-
+
+
diff --git a/tests/unit/specs/components/stories/__snapshots__/EventCardStory.spec.ts.snap b/tests/unit/specs/components/stories/__snapshots__/EventCardStory.spec.ts.snap index 8911ff613..02744766c 100644 --- a/tests/unit/specs/components/stories/__snapshots__/EventCardStory.spec.ts.snap +++ b/tests/unit/specs/components/stories/__snapshots__/EventCardStory.spec.ts.snap @@ -6,8 +6,8 @@ exports[`Event Card Story > Default 1`] = `