joyent-portal/frontend/test/components/project-section.js

21 lines
472 B
JavaScript
Raw Normal View History

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 <ProjectSection> without exploding', (t) => {
// eslint-disable-next-line max-len
const Section = require('@containers/project/section').default.WrappedComponent;
2017-01-03 01:32:15 +02:00
const wrapper = render(withIntl(<Section />));
t.deepEqual(wrapper.length, 1);
});