import * as React from 'react'; import * as ReactDOM from 'react-dom'; import test from 'ava'; import * as sinon from 'sinon'; import { shallow } from 'enzyme'; import Button from '../../../ts/views/buttons/button'; test('button onclick work if passed in', (t) => { const onClickSpy = sinon.spy(); const wrapper = shallow( ); t.is(wrapper.text(), 'Continue'); });