Skip to content

Instantly share code, notes, and snippets.

@visualskyrim
Last active August 6, 2017 14:40
Show Gist options
  • Select an option

  • Save visualskyrim/ae6dd14c4d03eb4d1d7d9461de7fcaa6 to your computer and use it in GitHub Desktop.

Select an option

Save visualskyrim/ae6dd14c4d03eb4d1d7d9461de7fcaa6 to your computer and use it in GitHub Desktop.
Use Enzyme to test React/Redux container - Code List 3
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