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) => {
|
|
|
|
const Button = require('../src/button');
|
|
|
|
const wrapper = shallow(<Button />);
|
2016-10-23 07:27:18 +03:00
|
|
|
t.deepEqual(wrapper.length, 1);
|
|
|
|
});
|