import * as React from 'react'; import { render } from '@testing-library/react'; import { JumpLinks } from '../JumpLinks'; import { JumpLinksItem } from '../JumpLinksItem'; import { JumpLinksList } from '../JumpLinksList'; test('simple jumplinks', () => { const { asFragment } = render( Inactive section Active section Inactive section ); expect(asFragment()).toMatchSnapshot(); }); test('jumplinks centered', () => { const { asFragment } = render( Inactive section Active section Inactive section ); expect(asFragment()).toMatchSnapshot(); }); test('jumplinks with label', () => { const { asFragment } = render( Inactive section Active section Inactive section ); expect(asFragment()).toMatchSnapshot(); }); test('vertical with label', () => { const { asFragment } = render( Inactive section Active section Inactive section ); expect(asFragment()).toMatchSnapshot(); }); test('expandable vertical with subsection', () => { const { asFragment } = render( Inactive section Section with active subsection Active subsection Inactive subsection Inactive subsection Inactive section Inactive section ); expect(asFragment()).toMatchSnapshot(); });