1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/frontend/test/components/services.js

28 lines
679 B
JavaScript
Raw Normal View History

2017-01-03 01:32:15 +02:00
const test = require('ava');
const enzyme = require('enzyme');
const React = require('react');
const create = require('../helpers/create');
const {
render
} = enzyme;
const {
withIntl,
withRouter
2017-01-03 01:32:15 +02:00
} = create;
test('renders <Services> without exploding', (t) => {
const Services =
require('@containers/services/view').default.WrappedComponent;
const wrapper = render(withRouter(withIntl(<Services />)));
2017-01-03 01:32:15 +02:00
t.deepEqual(wrapper.length, 1);
});
test.skip('renders connected <Services> without exploding', (t) => {
const Services = require('@containers/services/view').default;
2017-01-03 01:32:15 +02:00
const wrapper = render(create(<Services />));
t.deepEqual(wrapper.length, 1);
});