joyent-portal/ui/test/index.js
2016-10-24 12:43:32 +01:00

14 lines
299 B
JavaScript

const test = require('ava');
const enzyme = require('enzyme');
const React = require('react');
const {
shallow
} = enzyme;
test('renders <Button> without exploding', (t) => {
const Button = require('../src/button');
const wrapper = shallow(<Button />);
t.deepEqual(wrapper.length, 1);
});