Skip to content

Commit be829e1

Browse files
committed
tests
1 parent a16fa65 commit be829e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/replay/test/integration/stop.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,17 @@ describe('Integration | stop', () => {
128128

129129
it('does not buffer events when stopped', async function () {
130130
WINDOW.dispatchEvent(new Event('blur'));
131-
expect(replay.eventBuffer?.length).toBe(1);
131+
expect(replay.eventBuffer?.pendingLength).toBe(1);
132132

133133
// stop replays
134134
integration.stop();
135135

136-
expect(replay.eventBuffer?.length).toBe(undefined);
136+
expect(replay.eventBuffer?.pendingLength).toBe(undefined);
137137

138138
WINDOW.dispatchEvent(new Event('blur'));
139139
await new Promise(process.nextTick);
140140

141-
expect(replay.eventBuffer?.length).toBe(undefined);
141+
expect(replay.eventBuffer?.pendingLength).toBe(undefined);
142142
expect(replay).not.toHaveLastSentReplay();
143143
});
144144

0 commit comments

Comments
 (0)