mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
27 lines
652 B
JavaScript
27 lines
652 B
JavaScript
const test = require('ava');
|
|
const enzyme = require('enzyme');
|
|
const React = require('react');
|
|
|
|
const create = require('../helpers/create');
|
|
|
|
const {
|
|
render
|
|
} = enzyme;
|
|
|
|
const {
|
|
withIntl,
|
|
withRouter
|
|
} = create;
|
|
|
|
test('renders <Service> without exploding', (t) => {
|
|
const Service = require('@containers/service').default.WrappedComponent;
|
|
const wrapper = render(withRouter(withIntl(<Service />)));
|
|
t.deepEqual(wrapper.length, 1);
|
|
});
|
|
|
|
test('renders connected <Service> without exploding', (t) => {
|
|
const Service = require('@containers/service').default;
|
|
const wrapper = render(create(<Service />));
|
|
t.deepEqual(wrapper.length, 1);
|
|
});
|