1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

fix projects tests

This commit is contained in:
Sérgio Ramos 2017-03-23 12:03:45 +00:00
parent 528d18f20d
commit 1fdae858f3

View File

@ -15,7 +15,7 @@ const {
test('renders <Projects> without exploding', (t) => {
const Projects = require('@containers/projects').default.WrappedComponent;
const wrapper = render(withIntl(<Projects />));
const wrapper = render(withRouter(withIntl(<Projects />)));
t.deepEqual(wrapper.length, 1);
});
@ -56,7 +56,7 @@ test('renders <Projects>\'s list of projects ', (t) => {
test('renders <Projects>\'s empty <p> when no projects ', (t) => {
const Projects = require('@containers/projects').default.WrappedComponent;
const wrapper = render(withIntl(<Projects />));
const wrapper = render(withRouter(withIntl(<Projects />)));
const empty = wrapper.find('p[name=empty]');
const ul = wrapper.find('ul[name=projects]');