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

Components: Add tests for <PostStatus /> component #7942

Closed
aduth opened this issue Sep 7, 2016 · 0 comments
Closed

Components: Add tests for <PostStatus /> component #7942

aduth opened this issue Sep 7, 2016 · 0 comments

Comments

@aduth
Copy link
Contributor

aduth commented Sep 7, 2016

The <PostStatus /> component (block) is currently not tested. We should seek to add tests to verify expected render behavior of the component. Enzyme (and chai-enzyme assertions) may be useful utilities for rendering and asserting expected render results. Ideas for test cases may include some or all of the following:

  • Render returns expected element
    • Optionally rendered components are or are not present
    • Modifier classes by incoming props or component state
  • User interactions have expected results
  • Impact of lifecycle methods when props or state change during lifetime of component

When submitting a pull request, reference this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants