Update specs for setSdkDebugLogsLevel API
@@ -367,13 +367,24 @@ describe('Instabug Module', () => {
});
- it('should call the native method setSdkDebugLogsLevel', () => {
+ it('should call the native method setSdkDebugLogsLevel on iOS', () => {
const debugLevel = Instabug.sdkDebugLogsLevel.sdkDebugLogsLevelVerbose;
+
+ Platform.OS = 'ios';
Instabug.setSdkDebugLogsLevel(debugLevel);
expect(setSdkDebugLogsLevel.calledOnceWithExactly(debugLevel)).toBe(true);
});
+ it('should not call the native method setSdkDebugLogsLevel on Android', () => {
+ const debugLevel = Instabug.sdkDebugLogsLevel.sdkDebugLogsLevelVerbose;
+
+ Platform.OS = 'android';
+ Instabug.setSdkDebugLogsLevel(debugLevel);
+
+ expect(setSdkDebugLogsLevel.notCalled).toBe(true);
+ });
+
it('should call the native method setUserAttribute', () => {
const key = 'age';
