Skip to content

Commit

Permalink
fixed test for required store props in App Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
granda committed Oct 17, 2016
1 parent 785b44e commit 51aed5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"react-transform-catch-errors": "^1.0.2",
"react-transform-hmr": "^1.0.4",
"redbox-react": "^1.3.1",
"redux-mock-store": "^1.2.1",
"sinon": "^2.0.0-pre.2",
"stylelint": "^7.3.1",
"stylelint-config-standard": "^13.0.2",
Expand Down
6 changes: 5 additions & 1 deletion src/components/Layout/Layout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ import { expect } from 'chai';
import { shallow } from 'enzyme';
import App from '../App';
import Layout from './Layout';
import configureStore from 'redux-mock-store';

describe('Layout', () => {

it('renders children correctly', () => {
const mockStore = configureStore();
const store = mockStore()

const wrapper = shallow(
<App context={{ insertCss: () => {} }}>
<App context={{ insertCss: () => {}, store }}>
<Layout>
<div className="child" />
</Layout>
Expand Down

0 comments on commit 51aed5f

Please sign in to comment.