Skip to content

Commit ff3226c

Browse files
committed
Fix JS Test
1 parent ced701e commit ff3226c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/modules/BugReporting.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)