diff --git a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/runtime/BridgelessReactContextTest.kt b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/runtime/BridgelessReactContextTest.kt index 6f7eb6f474aed9..a3bf2053394eda 100644 --- a/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/runtime/BridgelessReactContextTest.kt +++ b/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/runtime/BridgelessReactContextTest.kt @@ -57,9 +57,7 @@ class BridgelessReactContextTest { @Test fun getCatalystInstanceTest() { - val bridgelessCatalystInstance = BridgelessCatalystInstance(reactHost) - doReturn(bridgelessCatalystInstance).`when`(bridgelessReactContext).getCatalystInstance() Assertions.assertThat(bridgelessReactContext.getCatalystInstance()) - .isEqualTo(bridgelessCatalystInstance) + .isInstanceOf(BridgelessCatalystInstance::class.java) } }