2016-10-20 04:14:26 +03:00
|
|
|
const test = require('ava');
|
2016-12-12 12:56:48 +02:00
|
|
|
const enzyme = require('enzyme');
|
|
|
|
const React = require('react');
|
2016-10-20 04:14:26 +03:00
|
|
|
|
2016-12-12 12:56:48 +02:00
|
|
|
const {
|
|
|
|
shallow
|
|
|
|
} = enzyme;
|
|
|
|
|
|
|
|
test('renders <App> without exploding', (t) => {
|
2017-02-20 18:15:36 +02:00
|
|
|
const App = require('@containers/app').default;
|
2016-12-12 12:56:48 +02:00
|
|
|
const wrapper = shallow(<App />);
|
|
|
|
t.deepEqual(wrapper.length, 1);
|
|
|
|
});
|
|
|
|
|
|
|
|
test('renders <Home> without exploding', (t) => {
|
2017-02-20 18:15:36 +02:00
|
|
|
const Home = require('@containers/home').default.WrappedComponent;
|
2016-12-12 12:56:48 +02:00
|
|
|
const wrapper = shallow(<Home />);
|
|
|
|
t.deepEqual(wrapper.length, 1);
|
2016-10-20 04:14:26 +03:00
|
|
|
});
|
|
|
|
|
2016-12-12 12:56:48 +02:00
|
|
|
test('renders <NotFound> without exploding', (t) => {
|
2017-02-20 18:15:36 +02:00
|
|
|
const NotFound = require('@containers/not-found').default;
|
2016-12-12 12:56:48 +02:00
|
|
|
const wrapper = shallow(<NotFound />);
|
|
|
|
t.deepEqual(wrapper.length, 1);
|
|
|
|
});
|