From 9e1e6e552c6154e2c1640139b3b94b624be0a203 Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Mon, 24 Aug 2026 17:29:30 -0300 Subject: [PATCH] fix: prettier format --- tests/unit/petitionLead.unit.spec.tsx | 33 ++++++++++++++++++++------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/tests/unit/petitionLead.unit.spec.tsx b/tests/unit/petitionLead.unit.spec.tsx index 6d85c3f4..ac8f9bd8 100644 --- a/tests/unit/petitionLead.unit.spec.tsx +++ b/tests/unit/petitionLead.unit.spec.tsx @@ -87,25 +87,35 @@ describe('Petition form Lead wiring', () => { }) it('fires exactly one Lead on a successful signature with a configured pixel', async () => { - render() + render( + , + ) await fillAndSubmit() await waitFor(() => { expect(screen.getByRole('heading', { name: 'Obrigado por assinar!' })).toBeTruthy() }) expect(trackMetaLeadMock).toHaveBeenCalledTimes(1) - expect(trackMetaLeadMock).toHaveBeenCalledWith( - PIXEL_ID, - petition.title, - expect.any(String), - ) + expect(trackMetaLeadMock).toHaveBeenCalledWith(PIXEL_ID, petition.title, expect.any(String)) }) it('keeps the committed signature a success when tracking throws', async () => { trackMetaLeadMock.mockImplementation(() => { throw new Error('crypto.randomUUID is not available') }) - render() + render( + , + ) await fillAndSubmit() await waitFor(() => { @@ -127,7 +137,14 @@ describe('Petition form Lead wiring', () => { it('never fires a Lead when the submission fails', async () => { submitPetitionSignatureMock.mockRejectedValue(new Error('boom')) - render() + render( + , + ) await fillAndSubmit() await waitFor(() => {