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
|
|
|
|
} = create;
|
|
|
|
|
|
|
|
test('renders <Services> without exploding', (t) => {
|
2017-02-20 18:15:36 +02:00
|
|
|
const Services = require('@containers/services').default.WrappedComponent;
|
2017-01-03 01:32:15 +02:00
|
|
|
const wrapper = render(withIntl(<Services />));
|
|
|
|
t.deepEqual(wrapper.length, 1);
|
|
|
|
});
|
|
|
|
|
|
|
|
test('renders connected <Services> without exploding', (t) => {
|
2017-02-20 18:15:36 +02:00
|
|
|
const Services = require('@containers/services').default;
|
2017-01-03 01:32:15 +02:00
|
|
|
const wrapper = render(create(<Services />));
|
|
|
|
t.deepEqual(wrapper.length, 1);
|
|
|
|
});
|