mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
17 lines
397 B
TypeScript
17 lines
397 B
TypeScript
import React from 'react';
|
|
import renderer from 'react-test-renderer';
|
|
import GrafanaScrollbar from './GrafanaScrollbar';
|
|
|
|
describe('GrafanaScrollbar', () => {
|
|
it('renders correctly', () => {
|
|
const tree = renderer
|
|
.create(
|
|
<GrafanaScrollbar>
|
|
<p>Scrollable content</p>
|
|
</GrafanaScrollbar>
|
|
)
|
|
.toJSON();
|
|
expect(tree).toMatchSnapshot();
|
|
});
|
|
});
|