Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Jan 26, 2024
1 parent ccae8fa commit 848369e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Pinterest MC sends correct request', () => {
const baseHref = `${baseOrigin}/`

const mockEvent: MCEvent = {
payload: { timestamp: 1670409810, event: 'pagevisit', tid: 'xyz' },
payload: { timestamp: 1670409810, event: 'pageview', tid: 'xyz' },
client: {
url: new URL(baseHref),
title: 'Zaraz "Test" /t Page',
Expand Down Expand Up @@ -78,6 +78,6 @@ describe('Pinterest MC sends correct request', () => {
})

it('Handler invokes fetch correctly', () => {
expect(() => handler(mockEvent, settings)).not.toThrow()
expect(() => handler(mockEvent, settings, mockEvent.payload.event)).not.toThrow()

Check failure on line 81 in src/index.test.ts

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Replace `·handler(mockEvent,·settings,·mockEvent.payload.event)` with `⏎······handler(mockEvent,·settings,·mockEvent.payload.event)⏎····`
})
})

0 comments on commit 848369e

Please sign in to comment.