Skip to content

Commit 5af3ef1

Browse files
noahsmartinlucas-zimermanantonis
authored
Remove use of integrations in tests (#5310)
Co-authored-by: LucasZF <[email protected]> Co-authored-by: Antonis Lilis <[email protected]>
1 parent 3258078 commit 5af3ef1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ - (void)testCreateOptionsWithDictionaryNativeCrashHandlingDefault
6666
error:&error];
6767
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
6868
XCTAssertNil(error, @"Should not pass no error");
69-
XCTAssertEqual([actualOptions.integrations containsObject:@"SentryCrashIntegration"], true,
70-
@"Did not set native crash handling");
69+
XCTAssertTrue(actualOptions.enableCrashHandler, @"Did not set native crash handling");
7170
}
7271

7372
- (void)testCreateOptionsWithDictionaryAutoPerformanceTracingDefault
@@ -99,8 +98,7 @@ - (void)testCreateOptionsWithDictionaryNativeCrashHandlingEnabled
9998
error:&error];
10099
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
101100
XCTAssertNil(error, @"Should not pass no error");
102-
XCTAssertEqual([actualOptions.integrations containsObject:@"SentryCrashIntegration"], true,
103-
@"Did not set native crash handling");
101+
XCTAssertTrue(actualOptions.enableCrashHandler, @"Did not set native crash handling");
104102
}
105103

106104
- (void)testCreateOptionsWithDictionaryAutoPerformanceTracingEnabled

0 commit comments

Comments
 (0)