-
-
Save whtswrng/d928c68a7d3085c620296ca8f8891c69 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
describe('Last name input', () => { | |
describe('when it changed', () => { | |
beforeEach(() => { | |
componentWrapper.find('#lastName').simulate('change', { target: { value: 'Duan' } }); | |
}); | |
it('should display changed value', () => { | |
expect(componentWrapper.find('#lastName').props().value).toEqual('Duan'); | |
}); | |
}); | |
)}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment