From 8bdf4086d57245f1c5cb3f9b2d9780e69a908498 Mon Sep 17 00:00:00 2001 From: shrouti1507 Date: Tue, 15 Oct 2024 10:52:21 +0530 Subject: [PATCH] fix: adding test coverage for posthog profiles change --- .../__tests__/integrations/Posthog/browser.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/analytics-js-integrations/__tests__/integrations/Posthog/browser.test.js b/packages/analytics-js-integrations/__tests__/integrations/Posthog/browser.test.js index 1328d467a..81cb34adc 100644 --- a/packages/analytics-js-integrations/__tests__/integrations/Posthog/browser.test.js +++ b/packages/analytics-js-integrations/__tests__/integrations/Posthog/browser.test.js @@ -51,6 +51,7 @@ const config = { disableSessionRecording: false, disableCookie: false, propertyBlackList: ['name'], + personProfiles: 'always' }; const analytics = { @@ -72,6 +73,7 @@ describe('Posthog Test', () => { expect(posthogInstance.xhrHeaders).toEqual({}); expect(posthogInstance.enableLocalStoragePersistence).toBeUndefined(); expect(posthogInstance.destinationId).toBe(destinationInfo.destinationId); + expect(posthogInstance.personProfiles).toEqual('always'); }); // init() method initializes the Posthog SDK with valid config