File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,18 +134,18 @@ describe('Testing BugReporting Module', () => {
134
134
135
135
it ( 'should call the native method setOnDismissHandler with a function' , ( ) => {
136
136
const callback = jest . fn ( ) ;
137
- BugReporting . onSDKDismissedHandler ( callback ) ;
137
+ BugReporting . onDismissHandler ( callback ) ;
138
138
139
139
expect ( NativeBugReporting . setOnDismissHandler ) . toBeCalledTimes ( 1 ) ;
140
140
expect ( NativeBugReporting . setOnDismissHandler ) . toBeCalledWith ( callback ) ;
141
141
} ) ;
142
142
143
143
it ( 'should invoke callback on emitting the event IBGpostInvocationHandler' , ( ) => {
144
- const dismissType = ' cancel' ;
145
- const reportType = ' bug' ;
144
+ const dismissType = Instabug . dismissType . cancel ;
145
+ const reportType = BugReporting . reportType . bug ;
146
146
const callback = jest . fn ( ) ;
147
147
148
- BugReporting . onSDKDismissedHandler ( callback ) ;
148
+ BugReporting . onDismissHandler ( callback ) ;
149
149
IBGEventEmitter . emit ( IBGConstants . ON_SDK_DISMISSED_HANDLER , {
150
150
dismissType : dismissType ,
151
151
reportType : reportType ,
You can’t perform that action at this time.
0 commit comments