File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -144,18 +144,18 @@ describe('Testing BugReporting Module', () => {
144
144
145
145
it ( 'should call the native method setOnDismissHandler with a function' , ( ) => {
146
146
const callback = jest . fn ( ) ;
147
- BugReporting . onSDKDismissedHandler ( callback ) ;
147
+ BugReporting . onDismissHandler ( callback ) ;
148
148
149
149
expect ( NativeBugReporting . setOnDismissHandler ) . toBeCalledTimes ( 1 ) ;
150
150
expect ( NativeBugReporting . setOnDismissHandler ) . toBeCalledWith ( callback ) ;
151
151
} ) ;
152
152
153
153
it ( 'should invoke callback on emitting the event IBGpostInvocationHandler' , ( ) => {
154
- const dismissType = ' cancel' ;
155
- const reportType = ' bug' ;
154
+ const dismissType = Instabug . dismissType . cancel ;
155
+ const reportType = BugReporting . reportType . bug ;
156
156
const callback = jest . fn ( ) ;
157
157
158
- BugReporting . onSDKDismissedHandler ( callback ) ;
158
+ BugReporting . onDismissHandler ( callback ) ;
159
159
emitter . emit ( NativeEvents . ON_DISMISS_HANDLER , {
160
160
dismissType : dismissType ,
161
161
reportType : reportType ,
You can’t perform that action at this time.
0 commit comments