Skip to content

Commit d21024c

Browse files
committed
Fix JS Test
1 parent ad6488f commit d21024c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/modules/BugReporting.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ describe('Testing BugReporting Module', () => {
144144

145145
it('should call the native method setOnDismissHandler with a function', () => {
146146
const callback = jest.fn();
147-
BugReporting.onSDKDismissedHandler(callback);
147+
BugReporting.onDismissHandler(callback);
148148

149149
expect(NativeBugReporting.setOnDismissHandler).toBeCalledTimes(1);
150150
expect(NativeBugReporting.setOnDismissHandler).toBeCalledWith(callback);
151151
});
152152

153153
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;
156156
const callback = jest.fn();
157157

158-
BugReporting.onSDKDismissedHandler(callback);
158+
BugReporting.onDismissHandler(callback);
159159
emitter.emit(NativeEvents.ON_DISMISS_HANDLER, {
160160
dismissType: dismissType,
161161
reportType: reportType,

0 commit comments

Comments
 (0)