import React from 'react'; import { mount, shallow } from 'enzyme'; import assert from 'assert'; import sinon from 'sinon'; import _ from 'lodash'; import { common, controls } from '../../util/generic-tests'; import Button from './Button'; describe('Button', () => { common(Button); controls(Button, { callbackName: 'onClick', controlSelector: '.lucid-Button', eventType: 'click', }); describe('text', () => { it('should allow children as content', () => { const text = 'Hello'; const wrapper = shallow(); assert.equal(wrapper.text(), text); }); }); describe('isDisabled', () => { it('should not be disabled by default', () => { const wrapper = shallow(