func testCreatingWithReactNativeUnavailable()

in FBSDKCoreKit/FBSDKCoreKitTests/Internal/AppEvents/Codeless/EventBindingManagerTests.swift [69:84]


  func testCreatingWithReactNativeUnavailable() {
    deregisterReactNativeClasses()
    manager = EventBindingManager(swizzler: TestSwizzler.self, eventLogger: eventLogger)
    XCTAssertFalse(
      manager.hasReactNative,
      "Should detect if react native is in the runtime"
    )
    manager.validClasses.forEach { item in
      switch item.base {
      case is UIControl.Type: break
      case is UICollectionView.Type: break
      case is UITableView.Type: break
      default: XCTFail("\(item.description) should not be considered valid")
      }
    }
  }