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