Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioh8010 committed Aug 31, 2023
1 parent ec715f7 commit 7029bb7
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,17 @@ import org.robolectric.RobolectricTestRunner

/** Test that verifies that spec of methods annotated with @ReactProp is correct */
@RunWith(RobolectricTestRunner::class)
@Suppress("UNUSED_PARAMETER")
class ReactPropAnnotationSetterSpecTest {
private abstract inner class BaseViewManager : ViewManager<View, ReactShadowNode<*>>() {
override fun getName(): String {
return "IgnoredName"
}
override fun getName(): String = "IgnoredName"

override fun createShadowNodeInstance(): ReactShadowNode<*> {
return createShadowNodeInstance()
}
override fun createShadowNodeInstance(): ReactShadowNode<*> = createShadowNodeInstance()

override fun getShadowNodeClass(): Class<out ReactShadowNode<*>> {
return ReactShadowNode::class.java
}
override fun getShadowNodeClass(): Class<out ReactShadowNode<*>> = ReactShadowNode::class.java

override fun createViewInstance(reactContext: ThemedReactContext): View {
return createViewInstance(reactContext)
}
override fun createViewInstance(reactContext: ThemedReactContext): View =
createViewInstance(reactContext)

override fun updateExtraData(root: View, extraData: Any) {}
}
Expand Down

0 comments on commit 7029bb7

Please sign in to comment.