Created
April 13, 2022 18:14
-
-
Save tanner-west/8e7790099a2803a1c7e7796d2ed06318 to your computer and use it in GitHub Desktop.
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
it('Should increment counter when button is pressed', () => { | |
const button = getByTestId(wrapper, 'increment-counter'); | |
expect(wrapper.state('counter')).toEqual(0); | |
button.props().onPress(); | |
expect(wrapper.state('counter')).toEqual(1); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment