Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Jan 11, 2024
1 parent 5f51c06 commit 8a8bddd
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/__tests__/extensions/replay/sessionrecording.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,20 +251,10 @@ describe('SessionRecording', () => {
expect(sessionRecording['status']).toBe('buffering')
expect(sessionRecording['buffer']).toEqual(EMPTY_BUFFER)

_emit(createIncrementalSnapshot({ data: { source: 1 } }))
const incrementalSnapshot = createIncrementalSnapshot({ data: { source: 1 } })
_emit(incrementalSnapshot)
expect(sessionRecording['buffer']).toEqual({
data: [
{
data: {},
type: 2,
},
{
data: {
source: 1,
},
type: 3,
},
],
data: [createFullSnapshot(), incrementalSnapshot],
sessionId: sessionId,
size: 50,
windowId: 'windowId',
Expand Down

0 comments on commit 8a8bddd

Please sign in to comment.