Skip to content

Commit

Permalink
fix tests2
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed Jan 26, 2024
1 parent 848369e commit c535c6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ describe('Pinterest MC sends correct request', () => {
})

it('Handler invokes fetch correctly', () => {
expect(() => handler(mockEvent, settings, mockEvent.payload.event)).not.toThrow()
const arr = []
handler(mockEvent, settings,'pageview', (...args) => {

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

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Insert `·`
arr.push(args)
})
expect(arr.length).toBe(1)
})
})

0 comments on commit c535c6f

Please sign in to comment.