Skip to content

Commit

Permalink
Fix tests: attempt #2
Browse files Browse the repository at this point in the history
  • Loading branch information
omarmosid committed Jul 24, 2023
1 parent 2bdff9b commit 2529056
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ describe('Hubspot MC Form handler works correctly', () => {
}
fakeEvent.client = {
...dummyClient,
fetch: (url, opts) => {
request = { url, opts }
fetch: () => {
return undefined
},
get: key => {
Expand Down Expand Up @@ -309,7 +308,7 @@ describe('Hubspot MC Form handler works correctly', () => {
somedata: 'some data',
accountId: 'account_id_passed_from_action',
}
const { url, data } = prepareFormEvent(settings, fakeEvent)
const { url } = prepareFormEvent(settings, fakeEvent)
expect(url).toBe(
`https://api.hsforms.com/submissions/v3/integration/submit/account_id_passed_from_action/form_id2`
)
Expand Down

0 comments on commit 2529056

Please sign in to comment.