adding tests
This commit is contained in:
@@ -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
9
src/widget.test.js
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user