From 2037e66d512e5725b65d8d8f49875675b7183571 Mon Sep 17 00:00:00 2001 From: AASHISH MALIK Date: Thu, 22 Aug 2024 18:21:53 +0530 Subject: [PATCH] Update browser.test.js --- .../__tests__/integrations/Braze/browser.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/analytics-js-integrations/__tests__/integrations/Braze/browser.test.js b/packages/analytics-js-integrations/__tests__/integrations/Braze/browser.test.js index 81f62cfbdb..caacf1273f 100644 --- a/packages/analytics-js-integrations/__tests__/integrations/Braze/browser.test.js +++ b/packages/analytics-js-integrations/__tests__/integrations/Braze/browser.test.js @@ -1083,7 +1083,7 @@ describe('hybrid mode', () => { expect(window.braze.changeUser).toBeCalledTimes(0); }); - it('should not call the necessary Braze methods for identify call', () => { + it('should call the necessary Braze methods for identify call', () => { const config = { appKey: 'APP_KEY', trackAnonymousUser: true, @@ -1118,6 +1118,6 @@ describe('hybrid mode', () => { braze.identify(rudderElement); // Expect the necessary Braze methods to be called with the correct values - expect(window.braze.changeUser).toBeCalledTimes(0); + expect(window.braze.changeUser).toBeCalledTimes(1); }); });