grafana/public/app/core/components/CustomScrollbar/CustomScrollbar.test.tsx
2018-09-07 14:24:33 +02:00

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();
});
});