Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Oct 15, 2024
1 parent 51a2ed2 commit b39fb37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__tests__/posthog-core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ describe('posthog core', () => {
const { posthog, onCapture } = setup({
token,
persistence_name: token,
person_profiles: 'always',
})

// act
Expand All @@ -135,6 +136,7 @@ describe('posthog core', () => {
const { posthog: posthog1 } = setup({
token,
persistence_name: token,
person_profiles: 'always',
})
posthog1.capture(eventName, eventProperties)
mockReferrerGetter.mockReturnValue('https://referrer2.example.com/some/path')
Expand Down Expand Up @@ -165,6 +167,7 @@ describe('posthog core', () => {
const { posthog: posthog1 } = setup({
token,
persistence_name: token,
person_profiles: 'always',
})
posthog1.capture(eventName, eventProperties)
mockReferrerGetter.mockReturnValue('https://referrer2.example.com/some/path')
Expand Down Expand Up @@ -195,6 +198,7 @@ describe('posthog core', () => {
const { posthog, onCapture } = setup({
token,
persistence_name: token,
person_profiles: 'always',
})

// act
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ describe('posthog core', () => {
remove_event_timer: jest.fn(),
get_property: () => 'anonymous',
props: { $groups: {} },
register: jest.fn(),
} as unknown as PostHogPersistence,
sessionPersistence: {
properties: () => ({ distinct_id: 'abc', persistent: 'prop' }),
Expand Down

0 comments on commit b39fb37

Please sign in to comment.