import React from 'react'; import Timer from '../../../javascripts/SqlLab/components/Timer'; import { shallow } from 'enzyme'; import { describe, it } from 'mocha'; import { expect } from 'chai'; import { queries } from './fixtures'; describe('Timer', () => { const mockedProps = { query: queries[0], }; it('renders', () => { expect(React.isValidElement()).to.equal(true); }); it('renders with props', () => { expect(React.isValidElement()) .to.equal(true); }); it('renders a span', () => { const wrapper = shallow(); expect(wrapper.find('span')).to.have.length(1); }); });