|
1 | | -xdescribe('<DashboardContainer />', () => { |
2 | | - it('should render <SidebarContainer />'); |
3 | | - it('should render <MainContainer />'); |
4 | | - it('should render all of the contexts'); |
| 1 | +import React from 'react'; |
| 2 | +import { configure, shallow, render } from 'enzyme'; |
| 3 | +// import Adapter from 'enzyme-adapter-react-16'; |
| 4 | +// import renderer from 'react-test-renderer'; |
| 5 | +// import { expect } from 'chai'; |
| 6 | +import DashboardContainer from '../../../app/containers/DashboardContainer'; |
| 7 | +import MainContainer from '../../../app/containers/MainContainer' |
| 8 | +import SidebarContainer from '../../../app/containers/SidebarContainer' |
| 9 | +import ApplicationContextProvider from '../../../app/context/ApplicationContext' |
| 10 | +// configure({ adapter: new Adapter() }); |
| 11 | + |
| 12 | +describe('<DashboardContainer />', () => { |
| 13 | + it(' renders component Maincontainer ', () => { |
| 14 | + const wrapper = shallow(<DashboardContainer />); |
| 15 | + |
| 16 | + expect(wrapper.contains(<MainContainer />)).toBe(true); |
| 17 | + expect(wrapper.contains(<SidebarContainer />)).toBe(true); |
| 18 | + }); |
| 19 | + |
| 20 | + it(' renders component SidebarContainer', () => { |
| 21 | + const wrapper = shallow(<DashboardContainer />); |
| 22 | + |
| 23 | + expect(wrapper.contains(<SidebarContainer />)).toBe(true); |
| 24 | + }); |
| 25 | + // it(' renders component SidebarContainer', () => { |
| 26 | + // const wrapper = shallow(<DashboardContainer />); |
| 27 | + |
| 28 | + // expect(wrapper.contains( <ApplicationContextProvider></ApplicationContextProvider>)).toBe(true); |
| 29 | + // }); |
| 30 | + |
5 | 31 | }); |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +// describe('<DashboardContainer />', () => { |
| 36 | +// it('should render <SidebarContainer />'); |
| 37 | +// it('should render <MainContainer />'); |
| 38 | +// it('should render all of the contexts'); |
| 39 | +// }); |
0 commit comments