@@ -63,7 +63,6 @@ describe('Instabug Module', () => {
6363 const hideView = sinon . spy ( NativeModules . Instabug , 'hideView' ) ;
6464 const show = sinon . spy ( NativeModules . Instabug , 'show' ) ;
6565 const setPreSendingHandler = sinon . spy ( NativeModules . Instabug , 'setPreSendingHandler' ) ;
66- const submitReport = sinon . spy ( NativeModules . Instabug , 'submitReport' ) ;
6766 const callPrivateApi = sinon . spy ( NativeModules . Instabug , 'callPrivateApi' ) ;
6867 const sendHandledJSCrash = sinon . spy ( NativeModules . Instabug , 'sendHandledJSCrash' ) ;
6968 const sendJSCrash = sinon . spy ( NativeModules . Instabug , 'sendJSCrash' ) ;
@@ -81,10 +80,9 @@ describe('Instabug Module', () => {
8180 isRunningLive . resetHistory ( ) ;
8281 setFileAttachment . resetHistory ( ) ;
8382 hideView . resetHistory ( ) ;
84- submitReport . resetHistory ( ) ;
8583 setPreSendingHandler . resetHistory ( ) ;
8684 IBGEventEmitter . removeAllListeners ( ) ;
87-
85+
8886 } ) ;
8987
9088 it ( 'componentDidAppearListener should call the native method reportScreenChange' , ( ) => {
@@ -583,9 +581,9 @@ describe('Instabug Module', () => {
583581 Instabug . onReportSubmitHandler ( jest . fn ( ) ) ;
584582 InstabugUtils . isOnReportHandlerSet . mockImplementation ( ( ) => true ) ;
585583 const isReportHandlerSet = InstabugUtils . isOnReportHandlerSet ( ) ;
586-
584+
587585 expect ( isReportHandlerSet ) . toBe ( true ) ;
588-
586+
589587 } ) ;
590588
591589 it ( 'should call the native method setPreSendingHandler with a function' , ( ) => {
@@ -619,7 +617,6 @@ describe('Instabug Module', () => {
619617 IBGEventEmitter . emit ( IBGConstants . PRESENDING_HANDLER , report ) ;
620618
621619 expect ( IBGEventEmitter . getListeners ( IBGConstants . PRESENDING_HANDLER ) . length ) . toEqual ( 1 ) ;
622- expect ( submitReport . calledOnce ) . toBe ( true ) ;
623620
624621 } ) ;
625622
@@ -634,7 +631,7 @@ describe('Instabug Module', () => {
634631 fileAttachments : [ 'path' ]
635632 } ;
636633 NativeModules . Instabug . getReport . mockResolvedValue ( report ) ;
637- const jsonObject = { stack : 'error' } ;
634+ const jsonObject = { stack : 'error' } ;
638635 const callback = ( rep ) => {
639636 expect ( rep ) . toBeInstanceOf ( Report ) ;
640637 expect ( rep . tags ) . toBe ( report . tags ) ;
@@ -658,7 +655,7 @@ describe('Instabug Module', () => {
658655 Instabug . onReportSubmitHandler ( jest . fn ( ) ) ;
659656 IBGEventEmitter . emit ( IBGConstants . SEND_HANDLED_CRASH , { } ) ;
660657 expect ( IBGEventEmitter . getListeners ( IBGConstants . SEND_HANDLED_CRASH ) . length ) . toEqual ( 0 ) ;
661-
658+
662659 } ) ;
663660
664661 it ( 'should invoke callback on emitting the event IBGSendUnhandledJSCrash' , async ( done ) => {
@@ -672,7 +669,7 @@ describe('Instabug Module', () => {
672669 fileAttachments : [ 'path' ]
673670 } ;
674671 NativeModules . Instabug . getReport . mockResolvedValue ( report ) ;
675- const jsonObject = { stack : 'error' } ;
672+ const jsonObject = { stack : 'error' } ;
676673 const callback = ( rep ) => {
677674 expect ( rep ) . toBeInstanceOf ( Report ) ;
678675 expect ( rep . tags ) . toBe ( report . tags ) ;
@@ -696,7 +693,7 @@ describe('Instabug Module', () => {
696693 Instabug . onReportSubmitHandler ( jest . fn ( ) ) ;
697694 IBGEventEmitter . emit ( IBGConstants . SEND_UNHANDLED_CRASH , { } ) ;
698695 expect ( IBGEventEmitter . getListeners ( IBGConstants . SEND_UNHANDLED_CRASH ) . length ) . toEqual ( 0 ) ;
699-
696+
700697 } ) ;
701698
702699 it ( 'should invoke the native method callPrivateApi' , ( ) => {
0 commit comments