From 9b833b28b9c93663d4cf8d85ea58f73b2d33d153 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Thu, 7 Mar 2024 15:35:18 +0100 Subject: [PATCH] Fix sample lint, remove duplicate native ios test --- .../RNSentryFramesTrackerListenerTests.m | 15 --------------- samples/react-native/src/App.tsx | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryFramesTrackerListenerTests.m b/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryFramesTrackerListenerTests.m index 31f1f1a966..2a3336fb25 100644 --- a/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryFramesTrackerListenerTests.m +++ b/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryFramesTrackerListenerTests.m @@ -10,21 +10,6 @@ @interface RNSentryFramesTrackerListenerTests : XCTestCase @implementation RNSentryFramesTrackerListenerTests -- (void)testRNSentryDependencyContainerInitializesFrameTracker -{ - XCTAssertNil([[RNSentryDependencyContainer sharedInstance] framesTrackerListener]); - - id sentryDependencyContainerMock = OCMClassMock([SentryDependencyContainer class]); - OCMStub(ClassMethod([sentryDependencyContainerMock sharedInstance])).andReturn(sentryDependencyContainerMock); - - id frameTrackerMock = OCMClassMock([SentryFramesTracker class]); - OCMStub([(SentryDependencyContainer*) sentryDependencyContainerMock framesTracker]).andReturn(frameTrackerMock); - - RNSentryEmitNewFrameEvent emitNewFrameEvent = ^(NSNumber *newFrameTimestampInSeconds) {}; - [[RNSentryDependencyContainer sharedInstance] initializeFramesTrackerListenerWith: emitNewFrameEvent]; - XCTAssertNotNil([[RNSentryDependencyContainer sharedInstance] framesTrackerListener]); -} - - (void)testRNSentryFramesTrackerCallsGivenEventEmitterOnNewFrame { id sentryDependencyContainerMock = OCMClassMock([SentryDependencyContainer class]); diff --git a/samples/react-native/src/App.tsx b/samples/react-native/src/App.tsx index 08372832b4..ee05aedd5f 100644 --- a/samples/react-native/src/App.tsx +++ b/samples/react-native/src/App.tsx @@ -135,7 +135,7 @@ const TabTwoStack = Sentry.withProfiler( component={PerformanceScreen} options={{ title: 'Performance' }} /> - +