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