|
5 | 5 | #import <OCMock/OCMock.h> |
6 | 6 | #import <RNSentry/RNSentry.h> |
7 | 7 | #import <Sentry/PrivateSentrySDKOnly.h> |
8 | | -#import <Sentry/SentryDebugImageProvider+HybridSDKs.h> |
9 | 8 | #import <UIKit/UIKit.h> |
10 | 9 | #import <XCTest/XCTest.h> |
11 | 10 | @import Sentry; |
@@ -1119,8 +1118,7 @@ - (void)testStartCreateOptionsWithDictionaryNativeCrashHandlingDefault |
1119 | 1118 | [RNSentryStart createOptionsWithDictionary:mockedReactNativeDictionary error:&error]; |
1120 | 1119 | XCTAssertNotNil(actualOptions, @"Did not create sentry options"); |
1121 | 1120 | XCTAssertNil(error, @"Should not pass no error"); |
1122 | | - XCTAssertEqual([actualOptions.integrations containsObject:@"SentryCrashIntegration"], true, |
1123 | | - @"Did not set native crash handling"); |
| 1121 | + XCTAssertEqual(actualOptions.enableCrashHandler, YES, @"Did not set native crash handling"); |
1124 | 1122 | } |
1125 | 1123 |
|
1126 | 1124 | - (void)testStartCreateOptionsWithDictionaryAutoPerformanceTracingDefault |
@@ -1150,8 +1148,7 @@ - (void)testStartCreateOptionsWithDictionaryNativeCrashHandlingEnabled |
1150 | 1148 | [RNSentryStart createOptionsWithDictionary:mockedReactNativeDictionary error:&error]; |
1151 | 1149 | XCTAssertNotNil(actualOptions, @"Did not create sentry options"); |
1152 | 1150 | XCTAssertNil(error, @"Should not pass no error"); |
1153 | | - XCTAssertEqual([actualOptions.integrations containsObject:@"SentryCrashIntegration"], true, |
1154 | | - @"Did not set native crash handling"); |
| 1151 | + XCTAssertEqual(actualOptions.enableCrashHandler, YES, @"Did not set native crash handling"); |
1155 | 1152 | } |
1156 | 1153 |
|
1157 | 1154 | - (void)testStartCreateOptionsWithDictionaryAutoPerformanceTracingEnabled |
@@ -1182,8 +1179,7 @@ - (void)testStartCreateOptionsWithDictionaryNativeCrashHandlingDisabled |
1182 | 1179 | [RNSentryStart createOptionsWithDictionary:mockedReactNativeDictionary error:&error]; |
1183 | 1180 | XCTAssertNotNil(actualOptions, @"Did not create sentry options"); |
1184 | 1181 | XCTAssertNil(error, @"Should not pass no error"); |
1185 | | - XCTAssertEqual([actualOptions.integrations containsObject:@"SentryCrashIntegration"], false, |
1186 | | - @"Did not disable native crash handling"); |
| 1182 | + XCTAssertEqual(actualOptions.enableCrashHandler, NO, @"Did not disable native crash handling"); |
1187 | 1183 | } |
1188 | 1184 |
|
1189 | 1185 | - (void)testStartCreateOptionsWithDictionaryAutoPerformanceTracingDisabled |
|
0 commit comments