mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
17 lines
447 B
TypeScript
17 lines
447 B
TypeScript
import React from 'react';
|
|
import renderer from 'react-test-renderer';
|
|
import Tooltip from './Tooltip';
|
|
|
|
describe('Tooltip', () => {
|
|
it('renders correctly', () => {
|
|
const tree = renderer
|
|
.create(
|
|
<Tooltip className="test-class" placement="auto" content="Tooltip text">
|
|
<a href="http://www.grafana.com">Link with tooltip</a>
|
|
</Tooltip>
|
|
)
|
|
.toJSON();
|
|
expect(tree).toMatchSnapshot();
|
|
});
|
|
});
|