Skip to content

Commit

Permalink
fix: correcting test-case
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <[email protected]>
  • Loading branch information
Sai Sankeerth committed Nov 9, 2023
1 parent b782b90 commit 687f2fa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/helper/helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ describe('GeoLocationHelper tests', () => {
screen: {
density: 2,
},
traits: {
email: '[email protected]',
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',
};
Expand All @@ -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',
Expand Down

0 comments on commit 687f2fa

Please sign in to comment.