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 {
|
2017-02-07 11:55:18 +02:00
|
|
|
withIntl,
|
|
|
|
withRouter
|
2017-01-03 01:32:15 +02:00
|
|
|
} = create;
|
|
|
|
|
2017-03-29 15:45:18 +03:00
|
|
|
test.skip('renders <Service> without exploding', (t) => {
|
|
|
|
const Service =
|
|
|
|
require('@containers/service/summary').default.WrappedComponent;
|
2017-02-07 11:55:18 +02:00
|
|
|
const wrapper = render(withRouter(withIntl(<Service />)));
|
2017-01-03 01:32:15 +02:00
|
|
|
t.deepEqual(wrapper.length, 1);
|
|
|
|
});
|
|
|
|
|
|
|
|
test('renders connected <Service> without exploding', (t) => {
|
2017-03-29 15:45:18 +03:00
|
|
|
const Service = require('@containers/service/summary').default;
|
2017-01-03 01:32:15 +02:00
|
|
|
const wrapper = render(create(<Service />));
|
|
|
|
t.deepEqual(wrapper.length, 1);
|
|
|
|
});
|