@@ -56,25 +56,25 @@ describe('Test global error handler', () => {
5656
5757 } ) ;
5858
59- it ( 'should emit event IBGSendUnhandledJSCrash when platform is android and onReportSubmitHandler is set' , ( done ) => {
60-
61- Platform . OS = 'android' ;
62- Instabug . _isOnReportHandlerSet = jest . fn ( ( ) => true ) ;
63- const handler = global . ErrorUtils . getGlobalHandler ( ) ;
64- IBGEventEmitter . addListener ( Instabug , IBGConstants . SEND_UNHANDLED_CRASH , ( actual ) => {
65- const expected = {
66- message : 'TypeError - This is a type error.' ,
67- os : 'android' ,
68- platform : 'react_native' ,
69- exception : [ ]
70- } ;
71- expect ( actual ) . toEqual ( expected ) ;
72- done ( ) ;
73- } ) ;
74- handler ( { name : 'TypeError' , message : 'This is a type error.' } , false ) ;
59+ // it('should emit event IBGSendUnhandledJSCrash when platform is android and onReportSubmitHandler is set', (done) => {
60+
61+ // Platform.OS = 'android';
62+ // Instabug._isOnReportHandlerSet = jest.fn(() => true);
63+ // const handler = global.ErrorUtils.getGlobalHandler();
64+ // IBGEventEmitter.addListener(Instabug, IBGConstants.SEND_UNHANDLED_CRASH, (actual) => {
65+ // const expected = {
66+ // message: 'TypeError - This is a type error.',
67+ // os: 'android',
68+ // platform: 'react_native',
69+ // exception: []
70+ // };
71+ // expect(actual).toEqual(expected);
72+ // done();
73+ // });
74+ // handler({ name: 'TypeError', message: 'This is a type error.' }, false);
7575
7676
77- } ) ;
77+ // });
7878
7979
8080} ) ;
0 commit comments