@@ -415,26 +415,28 @@ describe('Instabug Module', () => {
415415
416416 const bug = ReproStepsMode . disabled ;
417417 const crash = ReproStepsMode . enabled ;
418- const config = { bug, crash } ;
418+ const sessionReplay = ReproStepsMode . enabledWithNoScreenshots ;
419+ const config = { bug, crash, sessionReplay } ;
419420
420421 Instabug . setReproStepsConfig ( config ) ;
421422
422423 expect ( NativeInstabug . setReproStepsConfig ) . toBeCalledTimes ( 1 ) ;
423- expect ( NativeInstabug . setReproStepsConfig ) . toBeCalledWith ( bug , crash ) ;
424+ expect ( NativeInstabug . setReproStepsConfig ) . toBeCalledWith ( bug , crash , sessionReplay ) ;
424425 } ) ;
425426
426427 it ( 'setReproStepsConfig should prioritize `all` over `bug` and `crash`' , ( ) => {
427428 Platform . OS = 'android' ;
428429
429430 const bug = ReproStepsMode . disabled ;
430431 const crash = ReproStepsMode . enabled ;
432+ const sessionReplay = ReproStepsMode . enabledWithNoScreenshots ;
431433 const all = ReproStepsMode . enabledWithNoScreenshots ;
432- const config = { all, bug, crash } ;
434+ const config = { all, bug, crash, sessionReplay } ;
433435
434436 Instabug . setReproStepsConfig ( config ) ;
435437
436438 expect ( NativeInstabug . setReproStepsConfig ) . toBeCalledTimes ( 1 ) ;
437- expect ( NativeInstabug . setReproStepsConfig ) . toBeCalledWith ( all , all ) ;
439+ expect ( NativeInstabug . setReproStepsConfig ) . toBeCalledWith ( all , all , all ) ;
438440 } ) ;
439441
440442 it ( 'setReproStepsConfig should use defaults for `bug` and `crash`' , ( ) => {
@@ -448,6 +450,7 @@ describe('Instabug Module', () => {
448450 expect ( NativeInstabug . setReproStepsConfig ) . toBeCalledWith (
449451 ReproStepsMode . enabled ,
450452 ReproStepsMode . enabledWithNoScreenshots ,
453+ ReproStepsMode . enabled ,
451454 ) ;
452455 } ) ;
453456
0 commit comments