Skip to content

Commit

Permalink
ZRZ-1271 update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-via committed May 2, 2024
1 parent d45e68a commit 5225827
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -88,7 +88,7 @@ describe('Hubspot MC event handler works correctly', () => {

it('creates the Hubspot track request correctly', async () => {
const request = fetchedRequests.find((x: any) =>

Check warning on line 90 in src/index.test.ts

View workflow job for this annotation

GitHub Actions / build-test (20.x)

Unexpected any. Specify a different type
x.url.startsWith('https://track-eu1.hubspot.com/__ptq.gif?')
x.url.startsWith('https://track-eu1.hubspot.com/__ptbe.gif?')
)
expect(request).toBeTruthy()
expect(request?.opts?.mode).toEqual('no-cors')
Expand All @@ -97,7 +97,7 @@ describe('Hubspot MC event handler works correctly', () => {

const url = new URL(request.url)

expect(url.pathname).toEqual('/__ptq.gif')
expect(url.pathname).toEqual('/__ptbe.gif')
expect(url.searchParams.get('k')).toEqual('3')
expect(url.searchParams.get('v')).toEqual('1.1')
expect(url.searchParams.get('a')).toEqual(settings.accountId)
Expand Down
2 changes: 2 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({})

0 comments on commit 5225827

Please sign in to comment.