1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/ui/test/index.js

15 lines
311 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);
});
2016-10-26 19:32:38 +03:00