Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assertWrapped prop test helper #7

Closed
viktor-podzigun opened this issue Nov 19, 2021 · 0 comments
Closed

Add assertWrapped prop test helper #7

viktor-podzigun opened this issue Nov 19, 2021 · 0 comments

Comments

@viktor-podzigun
Copy link
Contributor

viktor-podzigun commented Nov 19, 2021

So it can be used in the render test cases like this:

val someChildComp: UiComponent[SomeChildProps] = mockUiComponent(???)

assertNativeComponent(result,
  <(someChildComp())(^.assertWrapped(inside(_) { case SomeChildProps(prop1, prop2) =>
    prop1 shouldBe ???
    prop2 shouldBe ???
  }))()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant