Created
February 25, 2019 16:20
-
-
Save niinpatel/f76eee1962be7bf0733955fa86aa2880 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
test('should update the value when onChange is called', () => { | |
act(() => { | |
nameField.onChange({ target: { value: 'nitin' } }); | |
}); | |
expect(nameField.value).toBe('nitin'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment