@@ -25,15 +25,15 @@ describe('Instabug Module', () => {
2525 const setIBGLogPrintsToConsole = sinon . spy ( NativeModules . Instabug , 'setIBGLogPrintsToConsole' ) ;
2626 const setSessionProfilerEnabled = sinon . spy ( NativeModules . Instabug , 'setSessionProfilerEnabled' ) ;
2727 const setPushNotificationsEnabled = sinon . spy ( NativeModules . Instabug , 'setPushNotificationsEnabled' ) ;
28- const setFloatingButtonEdge = sinon . spy ( NativeModules . Instabug , 'setFloatingButtonEdge' ) ;
28+ const setFloatingButtonEdge = sinon . spy ( NativeModules . IBGBugReporting , 'setFloatingButtonEdge' ) ;
2929 const setLocale = sinon . spy ( NativeModules . Instabug , 'setLocale' ) ;
3030 const setColorTheme = sinon . spy ( NativeModules . Instabug , 'setColorTheme' ) ;
3131 const setPrimaryColor = sinon . spy ( NativeModules . Instabug , 'setPrimaryColor' ) ;
3232 const appendTags = sinon . spy ( NativeModules . Instabug , 'appendTags' ) ;
3333 const resetTags = sinon . spy ( NativeModules . Instabug , 'resetTags' ) ;
3434 const getTags = sinon . spy ( NativeModules . Instabug , 'getTags' ) ;
3535 const setString = sinon . spy ( NativeModules . Instabug , 'setString' ) ;
36- const setEnabledAttachmentTypes = sinon . spy ( NativeModules . Instabug , 'setEnabledAttachmentTypes' ) ;
36+ const setEnabledAttachmentTypes = sinon . spy ( NativeModules . IBGBugReporting , 'setEnabledAttachmentTypes' ) ;
3737 const identifyUserWithEmail = sinon . spy ( NativeModules . Instabug , 'identifyUserWithEmail' ) ;
3838 const logOut = sinon . spy ( NativeModules . Instabug , 'logOut' ) ;
3939 const logUserEventWithName = sinon . spy ( NativeModules . Instabug , 'logUserEventWithName' ) ;
@@ -71,7 +71,6 @@ describe('Instabug Module', () => {
7171 setTrackUserSteps . resetHistory ( ) ;
7272 setIBGLogPrintsToConsole . resetHistory ( ) ;
7373 setPushNotificationsEnabled . resetHistory ( ) ;
74- setFloatingButtonEdge . resetHistory ( ) ;
7574 log . resetHistory ( ) ;
7675 setDebugEnabled . resetHistory ( ) ;
7776 enable . resetHistory ( ) ;
@@ -169,18 +168,8 @@ describe('Instabug Module', () => {
169168
170169 } ) ;
171170
172- it ( 'should not call the native method setPushNotificationsEnabled when platform is android' , ( ) => {
173-
174- Platform . OS = 'android' ;
175- Instabug . setPushNotificationsEnabled ( true ) ;
176-
177- expect ( setPushNotificationsEnabled . notCalled ) . toBe ( true ) ;
178-
179- } ) ;
180-
181171 it ( 'should call the native method setFloatingButtonEdge' , ( ) => {
182172
183- Platform . OS = 'ios' ;
184173 const offsetFromTop = 10 ;
185174 const edge = Instabug . floatingButtonEdge . left ;
186175 Instabug . setFloatingButtonEdge ( edge , offsetFromTop ) ;
@@ -189,12 +178,12 @@ describe('Instabug Module', () => {
189178
190179 } ) ;
191180
192- it ( 'should not call the native method setFloatingButtonEdge when platform is android' , ( ) => {
181+ it ( 'should not call the native method setPushNotificationsEnabled when platform is android' , ( ) => {
193182
194183 Platform . OS = 'android' ;
195- Instabug . setPushNotificationsEnabled ( Instabug . floatingButtonEdge . left , 10 ) ;
184+ Instabug . setPushNotificationsEnabled ( true ) ;
196185
197- expect ( setFloatingButtonEdge . notCalled ) . toBe ( true ) ;
186+ expect ( setPushNotificationsEnabled . notCalled ) . toBe ( true ) ;
198187
199188 } ) ;
200189
0 commit comments