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:
parent
528d18f20d
commit
1fdae858f3
@ -15,7 +15,7 @@ const {
|
|||||||
|
|
||||||
test('renders <Projects> without exploding', (t) => {
|
test('renders <Projects> without exploding', (t) => {
|
||||||
const Projects = require('@containers/projects').default.WrappedComponent;
|
const Projects = require('@containers/projects').default.WrappedComponent;
|
||||||
const wrapper = render(withIntl(<Projects />));
|
const wrapper = render(withRouter(withIntl(<Projects />)));
|
||||||
t.deepEqual(wrapper.length, 1);
|
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) => {
|
test('renders <Projects>\'s empty <p> when no projects ', (t) => {
|
||||||
const Projects = require('@containers/projects').default.WrappedComponent;
|
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 empty = wrapper.find('p[name=empty]');
|
||||||
const ul = wrapper.find('ul[name=projects]');
|
const ul = wrapper.find('ul[name=projects]');
|
||||||
|
Loading…
Reference in New Issue
Block a user