Skip to content

Commit cc596a8

Browse files
committed
Update enableLogs tests
1 parent 3bd04c2 commit cc596a8

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,7 @@ - (void)testCreateOptionsWithDictionaryEnableLogsEnabled
330330
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
331331
XCTAssertNil(error, @"Should not pass no error");
332332

333-
id experimentalOptions = [actualOptions valueForKey:@"experimental"];
334-
XCTAssertNotNil(experimentalOptions, @"Experimental options should not be nil");
335-
336-
BOOL enableLogs = [[experimentalOptions valueForKey:@"enableLogs"] boolValue];
333+
BOOL enableLogs = [[actualOptions valueForKey:@"enableLogs"] boolValue];
337334
XCTAssertTrue(enableLogs, @"enableLogs should be enabled");
338335
}
339336

@@ -351,11 +348,8 @@ - (void)testCreateOptionsWithDictionaryEnableLogsDisabled
351348

352349
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
353350
XCTAssertNil(error, @"Should not pass no error");
354-
355-
id experimentalOptions = [actualOptions valueForKey:@"experimental"];
356-
XCTAssertNotNil(experimentalOptions, @"Experimental options should not be nil");
357-
358-
BOOL enableLogs = [[experimentalOptions valueForKey:@"enableLogs"] boolValue];
351+
352+
BOOL enableLogs = [[actualOptions valueForKey:@"enableLogs"] boolValue];
359353
XCTAssertFalse(enableLogs, @"enableLogs should be disabled");
360354
}
361355

0 commit comments

Comments
 (0)