CustomScrollbar.test.tsx 392 B

12345678910111213141516
  1. import React from 'react';
  2. import renderer from 'react-test-renderer';
  3. import CustomScrollbar from './CustomScrollbar';
  4. describe('CustomScrollbar', () => {
  5. it('renders correctly', () => {
  6. const tree = renderer
  7. .create(
  8. <CustomScrollbar>
  9. <p>Scrollable content</p>
  10. </CustomScrollbar>
  11. )
  12. .toJSON();
  13. expect(tree).toMatchSnapshot();
  14. });
  15. });