import React from 'react';
import { shallow } from 'enzyme';
import { describe, it } from 'mocha';
import { expect } from 'chai';
import Link from '../../../javascripts/SqlLab/components/Link';
describe('Link', () => {
const mockedProps = {
tooltip: 'This is a tooltip',
href: 'http://www.airbnb.com',
};
it('renders', () => {
expect(React.isValidElement(TEST)).to.equal(true);
});
it('renders with props', () => {
expect(
React.isValidElement(TEST),
).to.equal(true);
});
it('renders an anchor tag', () => {
const wrapper = shallow(TEST);
expect(wrapper.find('a')).to.have.length(1);
});
});