Skip to content

Commit

Permalink
Continue to use the right ip field
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Jan 13, 2025
1 parent bd84657 commit e9ad48b
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ describe('cookielessServerHashStep', () => {
[COOKIELESS_MODE_FLAG_PROPERTY]: true,
$host: 'https://example.com',
$raw_user_agent: userAgent,
$ip: '1.2.3.4',
},
ip: '1.2.3.4',
site_url: 'https://example.com',
team_id: teamId,
now: now.toISOString(),
uuid: new UUID7(now.getTime()).toString(),
ip: null,
})
eventABitLater = deepFreeze({
...event,
Expand All @@ -127,7 +128,10 @@ describe('cookielessServerHashStep', () => {
})
eventOtherUser = deepFreeze({
...event,
ip: '5.6.7.8',
properties: {
...event.properties,
$ip: '5.6.7.8',
},
uuid: new UUID7(now.getTime()).toString(),
})
eventDifferentDay = deepFreeze({
Expand All @@ -143,12 +147,13 @@ describe('cookielessServerHashStep', () => {
$anon_distinct_id: COOKIELESS_SENTINEL_VALUE,
$host: 'https://example.com',
$raw_user_agent: userAgent,
$ip: '1.2.3.4',
},
ip: '1.2.3.4',
site_url: 'https://example.com',
team_id: teamId,
now: now.toISOString(),
uuid: new UUID7(now.getTime()).toString(),
ip: null,
})
identifyEventABitLater = deepFreeze({
...identifyEvent,
Expand All @@ -162,12 +167,13 @@ describe('cookielessServerHashStep', () => {
[COOKIELESS_MODE_FLAG_PROPERTY]: true,
$host: 'https://example.com',
$raw_user_agent: userAgent,
$ip: '1.2.3.4',
},
ip: '1.2.3.4',
site_url: 'https://example.com',
team_id: teamId,
now: now.toISOString(),
uuid: new UUID7(now.getTime()).toString(),
ip: null,
})
aliasEvent = deepFreeze({
...event,
Expand Down

0 comments on commit e9ad48b

Please sign in to comment.