joyent-portal/ui/test/index.js

14 lines
310 B
JavaScript
Raw Normal View History

2016-10-23 07:27:18 +03:00
const test = require('ava');
const enzyme = require('enzyme');
const React = require('react');
const {
shallow
} = enzyme;
2016-10-24 14:43:32 +03:00
test('renders <Button> without exploding', (t) => {
2016-10-24 16:14:03 +03:00
const Button = require('../src/components/button');
2016-10-24 14:43:32 +03:00
const wrapper = shallow(<Button />);
2016-10-23 07:27:18 +03:00
t.deepEqual(wrapper.length, 1);
});