joyent-portal/legacy/frontend-technical-prototype/test/components/index.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

20 lines
495 B
JavaScript

const test = require('ava');
const enzyme = require('enzyme');
const React = require('react');
const {
shallow
} = enzyme;
test('renders <App> without exploding', (t) => {
const App = require('@containers/app').default;
const wrapper = shallow(<App />);
t.deepEqual(wrapper.length, 1);
});
test('renders <NotFound> without exploding', (t) => {
const NotFound = require('@containers/not-found').default;
const wrapper = shallow(<NotFound />);
t.deepEqual(wrapper.length, 1);
});