@@ -9,11 +9,8 @@ import * as RRWeb from '@amplitude/rrweb';
99import { SessionReplayLocalConfig } from '../src/config/local-config' ;
1010
1111import { IDBFactory } from 'fake-indexeddb' ;
12- < < < << << HEAD
1312import { SessionReplayJoinedConfig , SessionReplayRemoteConfig } from '../src/config/types' ;
14- === === =
1513import { IDBPDatabase } from 'idb' ;
16- >>> >>> > 0 ae58d04 ( fix ( session replay ) : pr feedback )
1714import { DEFAULT_SAMPLE_RATE } from '../src/constants' ;
1815import * as SessionReplayIDB from '../src/events/events-idb-store' ;
1916import * 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