From 1fdae858f3e740844a827efb13c6b0b116140bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Thu, 23 Mar 2017 12:03:45 +0000 Subject: [PATCH] fix projects tests --- frontend/test/components/projects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/test/components/projects.js b/frontend/test/components/projects.js index 6ada97ac..a9d013a3 100644 --- a/frontend/test/components/projects.js +++ b/frontend/test/components/projects.js @@ -15,7 +15,7 @@ const { test('renders without exploding', (t) => { const Projects = require('@containers/projects').default.WrappedComponent; - const wrapper = render(withIntl()); + const wrapper = render(withRouter(withIntl())); t.deepEqual(wrapper.length, 1); }); @@ -56,7 +56,7 @@ test('renders \'s list of projects ', (t) => { test('renders \'s empty

when no projects ', (t) => { const Projects = require('@containers/projects').default.WrappedComponent; - const wrapper = render(withIntl()); + const wrapper = render(withRouter(withIntl())); const empty = wrapper.find('p[name=empty]'); const ul = wrapper.find('ul[name=projects]');