Skip to content

Commit c464853

Browse files
committed
Fix JS Test
1 parent 7e11ffc commit c464853

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
@@ -135,18 +135,18 @@ describe('Testing BugReporting Module', () => {
135135

136136
it('should call the native method setOnDismissHandler with a function', () => {
137137
const callback = jest.fn();
138-
BugReporting.onSDKDismissedHandler(callback);
138+
BugReporting.onDismissHandler(callback);
139139

140140
expect(NativeBugReporting.setOnDismissHandler).toBeCalledTimes(1);
141141
expect(NativeBugReporting.setOnDismissHandler).toBeCalledWith(callback);
142142
});
143143

144144
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;
147147
const callback = jest.fn();
148148

149-
BugReporting.onSDKDismissedHandler(callback);
149+
BugReporting.onDismissHandler(callback);
150150
IBGEventEmitter.emit(IBGConstants.ON_SDK_DISMISSED_HANDLER, {
151151
dismissType: dismissType,
152152
reportType: reportType,

0 commit comments

Comments
 (0)