From 687f2fa83f3fb0cc6065a55a95328de43dd72b0d Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Thu, 9 Nov 2023 20:07:33 +0530 Subject: [PATCH] fix: correcting test-case Signed-off-by: Sai Sankeerth --- test/helper/helper.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/helper/helper.test.ts b/test/helper/helper.test.ts index 16c80bdfa7..52ba215acb 100644 --- a/test/helper/helper.test.ts +++ b/test/helper/helper.test.ts @@ -101,10 +101,6 @@ describe('GeoLocationHelper tests', () => { screen: { density: 2, }, - traits: { - email: 'example124@email.com', - name: 'abcd124', - }, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', }; @@ -128,8 +124,8 @@ describe('GeoLocationHelper tests', () => { const enhancedMsg = GeoLocationHelper.getMessageWithGeoLocationData(msg); - expect(enhancedMsg.context.traits.address).not.toBe(undefined); - expect(enhancedMsg.context.traits.address).toEqual({ + expect(enhancedMsg.traits.address).not.toBe(undefined); + expect(enhancedMsg.traits.address).toEqual({ city: 'Gurugram', country: 'IN', postalCode: '122001',