Skip to content

Instantly share code, notes, and snippets.

@whtswrng
Created November 27, 2018 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whtswrng/d928c68a7d3085c620296ca8f8891c69 to your computer and use it in GitHub Desktop.
Save whtswrng/d928c68a7d3085c620296ca8f8891c69 to your computer and use it in GitHub Desktop.
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