Skip to content

Commit

Permalink
fox
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 12, 2024
1 parent 88ef8d9 commit 79895aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/extensions/replay/sessionrecording.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ describe('SessionRecording', () => {

_emit(createIncrementalSnapshot({ type: 3 }))

expect((sessionRecording as any)['_tryAddCustomEvent']).toHaveBeenCalledWith('$pageview', {
expect((sessionRecording as any)['_tryAddCustomEvent']).toHaveBeenCalledWith('$url_changed', {
href: 'https://test.com',
})
;(sessionRecording as any)._tryAddCustomEvent.mockClear()
Expand All @@ -1636,7 +1636,7 @@ describe('SessionRecording', () => {
_emit(createIncrementalSnapshot({ type: 3 }))

// the window href has changed, so we capture another pageview
expect((sessionRecording as any)['_tryAddCustomEvent']).toHaveBeenCalledWith('$pageview', {
expect((sessionRecording as any)['_tryAddCustomEvent']).toHaveBeenCalledWith('$url_changed', {
href: 'https://test.com/other',
})
})
Expand Down

0 comments on commit 79895aa

Please sign in to comment.