Created
August 2, 2019 20:22
-
-
Save yanmendes/ae401f69581921319a652ef18656c55a 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
it('should not submit an invalid form', () => { | |
const { getByText } = render(<App />) | |
fireEvent.click(getByText('Submit')) | |
expect(axios.post).not.toHaveBeenCalled() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment