diff --git a/src/index.test.ts b/src/index.test.ts index 603c590..da7ee03 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -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) => - x.url.startsWith('https://track-eu1.hubspot.com/__ptbe.gif?') + x.url.startsWith('https://track-eu1.hubspot.com/__ptq.gif?') ) expect(request).toBeTruthy() expect(request?.opts?.mode).toEqual('no-cors') @@ -97,7 +97,7 @@ describe('Hubspot MC event handler works correctly', () => { const url = new URL(request.url) - expect(url.pathname).toEqual('/__ptbe.gif') + expect(url.pathname).toEqual('/__ptq.gif') expect(url.searchParams.get('k')).toEqual('3') expect(url.searchParams.get('v')).toEqual('1.1') expect(url.searchParams.get('a')).toEqual(settings.accountId) diff --git a/src/index.ts b/src/index.ts index 97bc0d1..4e7c2e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -107,7 +107,7 @@ export const sendEvent = client.fetch( `https://track${getRegionPrefix( regionPrefix - )}.hubspot.com/__ptbe.gif?${params}`, + )}.hubspot.com/__ptq.gif?${params}`, { credentials: 'include', keepalive: true, diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 8c97a4f..0000000 --- a/vitest.config.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { defineConfig } from 'vitest/config'; -export default defineConfig({})