import * as React from 'react' import { render } from '@testing-library/react' import '@testing-library/jest-dom' import { CDropdown, CDropdownItem, CDropdownMenu, CDropdownToggle } from '../../dropdown' import { CNav, CNavItem, CNavLink } from '../index' test('loads and displays CNav component', async () => { const { container } = render(Test) expect(container).toMatchSnapshot() }) test('CNav customize', async () => { const { container } = render( Test ) expect(container).toMatchSnapshot() expect(container.firstChild).toHaveClass('nav') expect(container.firstChild).toHaveClass('nav-justified') expect(container.firstChild).toHaveClass('nav-pills') expect(container.firstChild).toHaveClass('bazinga') }) test('CNav example', async () => { const { container } = render( Active Link A B C D Link Disabled ) expect(container).toMatchSnapshot() })