Last active
August 6, 2017 14:40
-
-
Save visualskyrim/ae6dd14c4d03eb4d1d7d9461de7fcaa6 to your computer and use it in GitHub Desktop.
Use Enzyme to test React/Redux container - Code List 3
This file contains hidden or 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('ConnectedShowBox', () => { | |
| it("should render successfully if string is not provided by store", () => { | |
| const testState = { | |
| showBox: {} | |
| }; | |
| const store = createMockStore(testState) | |
| const component = shallowWithStore(<ConnectedShowBox />, store); | |
| expect(component).to.be.a('object'); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment