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(() => {