Skip to content

Commit 4a3f839

Browse files
committed
make sure the queue is cleared
1 parent 1d59b49 commit 4a3f839

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/session-recording.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,5 +360,8 @@ describe(`SessionRecording`, function() {
360360
expect(fetchStub.calledOnce).to.be.false;
361361
expect(mockRrweb.stopSpy.calledOnce).to.be.true;
362362
expect(sessionRecording.isRrwebStopped()).to.be.true;
363+
364+
const queue = await idbGetItem(`mixpanelRecordingEvents`, batcherKey);
365+
expect(queue.length).to.equal(0, `batcher should have removed the items from IDB`);
363366
});
364367
});

0 commit comments

Comments
 (0)