daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Dec 17th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const renderedComponent = render(<Counter></Counter>);
  2. renderedComponent.querySelector('.count-button').click();
  3. renderedComponent.querySelector('.count-button').click();
  4. const renderedCount = renderedComponent
  5.  .querySelector('.current-count')
  6.  .innerHTML;
  7. expect(renderedCount).toEqual('2');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top