Skip to content

Commit e6505b7

Browse files
committed
Fix native ios tests
1 parent bcf3fb6 commit e6505b7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#import <OCMock/OCMock.h>
66
#import <RNSentry/RNSentry.h>
77
#import <Sentry/PrivateSentrySDKOnly.h>
8-
#import <Sentry/SentryDebugImageProvider+HybridSDKs.h>
98
#import <UIKit/UIKit.h>
109
#import <XCTest/XCTest.h>
1110
@import Sentry;
@@ -1119,8 +1118,7 @@ - (void)testStartCreateOptionsWithDictionaryNativeCrashHandlingDefault
11191118
[RNSentryStart createOptionsWithDictionary:mockedReactNativeDictionary error:&error];
11201119
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
11211120
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");
11241122
}
11251123

11261124
- (void)testStartCreateOptionsWithDictionaryAutoPerformanceTracingDefault
@@ -1150,8 +1148,7 @@ - (void)testStartCreateOptionsWithDictionaryNativeCrashHandlingEnabled
11501148
[RNSentryStart createOptionsWithDictionary:mockedReactNativeDictionary error:&error];
11511149
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
11521150
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");
11551152
}
11561153

11571154
- (void)testStartCreateOptionsWithDictionaryAutoPerformanceTracingEnabled
@@ -1182,8 +1179,7 @@ - (void)testStartCreateOptionsWithDictionaryNativeCrashHandlingDisabled
11821179
[RNSentryStart createOptionsWithDictionary:mockedReactNativeDictionary error:&error];
11831180
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
11841181
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");
11871183
}
11881184

11891185
- (void)testStartCreateOptionsWithDictionaryAutoPerformanceTracingDisabled

0 commit comments

Comments
 (0)