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', () => {
367
367
368
368
} ) ;
369
369
370
- it ( 'should call the native method setSdkDebugLogsLevel' , ( ) => {
370
+ it ( 'should call the native method setSdkDebugLogsLevel on iOS ' , ( ) => {
371
371
const debugLevel = Instabug . sdkDebugLogsLevel . sdkDebugLogsLevelVerbose ;
372
+
373
+ Platform . OS = 'ios' ;
372
374
Instabug . setSdkDebugLogsLevel ( debugLevel ) ;
373
375
374
376
expect ( setSdkDebugLogsLevel . calledOnceWithExactly ( debugLevel ) ) . toBe ( true ) ;
375
377
} ) ;
376
378
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
+
377
388
it ( 'should call the native method setUserAttribute' , ( ) => {
378
389
379
390
const key = 'age' ;
You can’t perform that action at this time.
0 commit comments