Instantly share code, notes, and snippets.

@whtswrng whtswrng/.js
Created Nov 27, 2018

Embed
What would you like to do?
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