File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -367,13 +367,24 @@ describe('Instabug Module', () => {
367367
368368 } ) ;
369369
370- it ( 'should call the native method setSdkDebugLogsLevel' , ( ) => {
370+ it ( 'should call the native method setSdkDebugLogsLevel on iOS ' , ( ) => {
371371 const debugLevel = Instabug . sdkDebugLogsLevel . sdkDebugLogsLevelVerbose ;
372+
373+ Platform . OS = 'ios' ;
372374 Instabug . setSdkDebugLogsLevel ( debugLevel ) ;
373375
374376 expect ( setSdkDebugLogsLevel . calledOnceWithExactly ( debugLevel ) ) . toBe ( true ) ;
375377 } ) ;
376378
379+ it ( 'should not call the native method setSdkDebugLogsLevel on Android' , ( ) => {
380+ const debugLevel = Instabug . sdkDebugLogsLevel . sdkDebugLogsLevelVerbose ;
381+
382+ Platform . OS = 'android' ;
383+ Instabug . setSdkDebugLogsLevel ( debugLevel ) ;
384+
385+ expect ( setSdkDebugLogsLevel . notCalled ) . toBe ( true ) ;
386+ } ) ;
387+
377388 it ( 'should call the native method setUserAttribute' , ( ) => {
378389
379390 const key = 'age' ;
You can’t perform that action at this time.
0 commit comments