GrafanaScrollbar.test.tsx 389 B

123456789101112131415
  1. import React from 'react';
  2. import { mount } from 'enzyme';
  3. import toJson from 'enzyme-to-json';
  4. import GrafanaScrollbar from './GrafanaScrollbar';
  5. describe('GrafanaScrollbar', () => {
  6. it('renders correctly', () => {
  7. const tree = mount(
  8. <GrafanaScrollbar>
  9. <p>Scrollable content</p>
  10. </GrafanaScrollbar>
  11. );
  12. expect(toJson(tree)).toMatchSnapshot();
  13. });
  14. });