From 8a8bddd70dde488e0d514d391cfbcc0c2f5f6a2b Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 11 Jan 2024 14:29:45 +0000 Subject: [PATCH] fix --- .../extensions/replay/sessionrecording.test.ts | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/__tests__/extensions/replay/sessionrecording.test.ts b/src/__tests__/extensions/replay/sessionrecording.test.ts index e644485fe..bb86771f7 100644 --- a/src/__tests__/extensions/replay/sessionrecording.test.ts +++ b/src/__tests__/extensions/replay/sessionrecording.test.ts @@ -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',