import { create } from 'react-test-renderer'; import IconButtonLink from './IconButtonLink'; describe('IconButtonLink', () => { test('renders', () => { const component = create( , ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); test('renders with icon', () => { const component = create( , ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); test('renders with svg', () => { const component = create( , ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); test('renders with tooltip', () => { const component = create( , ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); test('renders disabled', () => { const component = create( , ); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); });