Created
          November 6, 2021 22:40 
        
      - 
      
- 
        Save szaranger/ee76f9a48580095756a4b1ff25e0edca to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | test('Clicking on + increments the number', () => { | |
| // using enzyme | |
| const wrapper = mount(<Count />); | |
| expect(wrapper.state('count')).toBe(0); | |
| wrapper.instance().incrementCount(); | |
| expect(wrapper.state('count')).toBe(1); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment