1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00
copilot/ui/test/index.js
2016-10-24 14:14:03 +01:00

14 lines
310 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/components/button');
const wrapper = shallow(<Button />);
t.deepEqual(wrapper.length, 1);
});