Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Commit a206a8e

Browse files
committed
Feat: update index.js.test for containers to have the proper import
1 parent 3f34133 commit a206a8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/generators/container/test.js.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {{ properCase name }} from '../index';
1+
import {{ properCase name }}Container from '../index';
22
import { shallow } from 'enzyme';
33
import { shallowToJson } from 'enzyme-to-json';
44
import React from 'react';
55
import configureMockStore from 'redux-mock-store';
66
import thunk from 'redux-thunk';
7-
import { initialState as {{ properCase name }} } from '../reducer';
7+
import { initialState as {{ camelCase name }} } from '../reducer';
88

99
const middlewares = [thunk];
1010
const mockStore = configureMockStore(middlewares);
@@ -13,7 +13,7 @@ describe('<{{ properCase name }} />', () => {
1313
it('should render with default props', () => {
1414
const store = mockStore({ {{ properCase name }} });
1515
const wrapper = shallow(
16-
<{{ properCase name }} store={store} />
16+
<{{ properCase name }}Container store={store} />
1717
);
1818
expect(shallowToJson(wrapper)).toMatchSnapshot();
1919
});

0 commit comments

Comments
 (0)