mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
26 lines
618 B
JavaScript
26 lines
618 B
JavaScript
|
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) => {
|
||
|
const Services = require('@containers/services').WrappedComponent;
|
||
|
const wrapper = render(withIntl(<Services />));
|
||
|
t.deepEqual(wrapper.length, 1);
|
||
|
});
|
||
|
|
||
|
test('renders connected <Services> without exploding', (t) => {
|
||
|
const Services = require('@containers/services');
|
||
|
const wrapper = render(create(<Services />));
|
||
|
t.deepEqual(wrapper.length, 1);
|
||
|
});
|