Created
September 25, 2018 08:23
-
-
Save whtswrng/76d6f6eedb42322140c227702ffd1374 to your computer and use it in GitHub Desktop.
react-testing-5.js
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
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