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 @@ -134,18 +134,18 @@ describe('Testing BugReporting Module', () => {
134134
135135 it('should call the native method setOnDismissHandler with a function', () => {
136136 const callback = jest.fn();
137- BugReporting.onSDKDismissedHandler (callback);
137+ BugReporting.onDismissHandler (callback);
138138
139139 expect(NativeBugReporting.setOnDismissHandler).toBeCalledTimes(1);
140140 expect(NativeBugReporting.setOnDismissHandler).toBeCalledWith(callback);
141141 });
142142
143143 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;
146146 const callback = jest.fn();
147147
148- BugReporting.onSDKDismissedHandler (callback);
148+ BugReporting.onDismissHandler (callback);
149149 IBGEventEmitter.emit(IBGConstants.ON_SDK_DISMISSED_HANDLER, {
150150 dismissType: dismissType,
151151 reportType: reportType,
You can’t perform that action at this time.
0 commit comments