Instantly share code, notes, and snippets.

Embed
What would you like to do?
react-testing-5.js
it('should render marketing content with correct logo', () => {
expect(wrapper.find('MarketingContent').length).toBe(1);
expect(wrapper.find('MarketingContent').props("logo")).toEqual(logo);
});
it('should render email input and pass it onChange method', () => {
expect(wrapper.find('EmailInput').length).toBe(1);
expect(wrapper.find('EmailInput').props("onChange")).toEqual(this.onChange);
});
it('should render submit button', () => {
expect(wrapper.find('SubmitInput').length).toBe(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment