Skip to content

Commit 5f3192c

Browse files
removed parseErrorStack mock from crashReporting test
1 parent f0b6a99 commit 5f3192c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

__tests__/crashReporting.spec.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('CrashReporting Module', () => {
4444
it('should call the native method sendHandledJSCrash when platform is ios', () => {
4545

4646
Platform.OS = 'ios';
47-
InstabugUtils.parseErrorStack.mockImplementation(() => 'javascriptStackTrace');
4847
const errorObject = { name: 'TypeError', message: 'Invalid type' };
4948
CrashReporting.reportJSException(errorObject);
5049

@@ -62,7 +61,6 @@ describe('CrashReporting Module', () => {
6261
it('should call the native method sendHandledJSCrash when platform is android', () => {
6362

6463
Platform.OS = 'android';
65-
InstabugUtils.parseErrorStack.mockImplementation(() => 'javascriptStackTrace');
6664
const errorObject = { name: 'TypeError', message: 'Invalid type' };
6765
CrashReporting.reportJSException(errorObject);
6866

@@ -81,7 +79,6 @@ describe('CrashReporting Module', () => {
8179
it('should emit event IBGSendHandledJSCrash with the error object when platform is android', (done) => {
8280

8381
Platform.OS = 'android';
84-
InstabugUtils.parseErrorStack.mockImplementation(() => 'javascriptStackTrace');
8582
InstabugUtils.isOnReportHandlerSet.mockImplementation(() => true);
8683

8784
const errorObject = { name: 'TypeError', message: 'Invalid type' };

0 commit comments

Comments
 (0)