Skip to content

Commit 336b5ce

Browse files
author
Kelly Wallach
committed
fix(session replay): cleanup from rebase
1 parent 15e9c98 commit 336b5ce

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/session-replay-browser/test/session-replay.test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ import * as RRWeb from '@amplitude/rrweb';
99
import { SessionReplayLocalConfig } from '../src/config/local-config';
1010

1111
import { IDBFactory } from 'fake-indexeddb';
12-
<<<<<<< HEAD
1312
import { SessionReplayJoinedConfig, SessionReplayRemoteConfig } from '../src/config/types';
14-
=======
1513
import { IDBPDatabase } from 'idb';
16-
>>>>>>> 0ae58d04 (fix(session replay): pr feedback)
1714
import { DEFAULT_SAMPLE_RATE } from '../src/constants';
1815
import * as SessionReplayIDB from '../src/events/events-idb-store';
1916
import * as Helpers from '../src/helpers';
@@ -229,13 +226,6 @@ describe('SessionReplay', () => {
229226
sessionReplay.config && expectationFn(sessionReplay.config);
230227
});
231228

232-
test('should call initialize with shouldSendStoredEvents=true', async () => {
233-
await sessionReplay.init(apiKey, mockOptions).promise;
234-
235-
expect(initialize).toHaveBeenCalledTimes(1);
236-
237-
expect(initialize.mock.calls[0]).toEqual([true]);
238-
});
239229
test('should set up blur and focus event listeners', async () => {
240230
const stopRecordingMock = jest.fn();
241231
sessionReplay.recordCancelCallback = stopRecordingMock;
@@ -809,8 +799,8 @@ describe('SessionReplay', () => {
809799
// Reset this to false, it is set in init
810800
sessionReplay.sessionTargetingMatch = false;
811801
record.mockClear();
812-
evaluateTargetingMock.mockClear();
813802
evaluateTargetingMock = jest.spyOn(TargetingManager, 'evaluateTargetingAndStore').mockResolvedValue(true);
803+
evaluateTargetingMock.mockClear();
814804
});
815805
test('should return undefined if no identifiers set', async () => {
816806
sessionReplay.identifiers = undefined;

0 commit comments

Comments
 (0)