Skip to content

Conversation

mariocsee
Copy link
Contributor

@mariocsee mariocsee commented Oct 30, 2018

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update
  • Tests

Description

Adding some testing coverage for the Preact components for Dev Connect using preact-render-spy. Includes snapshot testing, component testing with stubbed functions.

Chat Components Checklist (cont.)

  • article
  • channelDetails
  • channels
  • chat
  • codeEditor
  • content
  • video

Related Tickets & Documents

#988

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

What gif best describes this PR or how it makes you feel?

tests

- covers article.jsx and elements created from its props and state
- added png as static file that needs stubbing
mariocsee and others added 10 commits November 6, 2018 12:42
mostly tests rendering elements
- does not test imported components, as those are already tested separately
- does not imported functions from actions or utils as those will be tested separately as well
- mocked response with flush promises for state/component to reflect appropriate changes
@mariocsee mariocsee changed the title [WIP] more testing for connect components more testing for connect components Nov 19, 2018
@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Nov 19, 2018
Copy link
Contributor

@benhalpern benhalpern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks above board from my perspective

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Nov 19, 2018
@benhalpern benhalpern merged commit faf1c67 into forem:master Nov 19, 2018
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants