adding tests

This commit is contained in:
Benjamin Boudreau
2018-05-29 21:56:01 -04:00
parent 9e9127738e
commit 234431c143
9 changed files with 2346 additions and 14 deletions

View File

@@ -43,7 +43,6 @@ class Widget extends Component {
const body = this.renderBody();
return (
<div className="docked-widget">
<Transition in={this.state.opened} timeout={250} onExited={this.handleWidgetExit}>
{status => (

9
src/widget.test.js Normal file
View File

@@ -0,0 +1,9 @@
import React from 'react';
import { shallow } from 'enzyme';
import Widget from './widget';
test('simple test', () => {
const widgetDom = shallow(<Widget />);
console.log(widgetDom.html());
expect(widgetDom.find('.docked-widget').exists()).toBe(true);
});