Created
December 17, 2018 10:41
-
-
Save FagnerMartinsBrack/dc5dca24f08c5692f7990705c9c668a8 to your computer and use it in GitHub Desktop.
(Medium) - The Myth Of 100% Code Coverage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const renderedComponent = render(<Counter></Counter>); | |
renderedComponent.querySelector('.count-button').click(); | |
renderedComponent.querySelector('.count-button').click(); | |
const renderedCount = renderedComponent | |
.querySelector('.current-count') | |
.innerHTML; | |
expect(renderedCount).toEqual('2'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment