diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-14 22:30:45 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-14 22:34:43 +0200 |
| commit | 894621cbf347485010de612b0f7fec74bdd26778 (patch) | |
| tree | ae552e096d5db104594be2a7a6ebc86a99d0642e /src/components/organisms/toolbar/toolbar.test.tsx | |
| parent | 88b575b0d81e97531b70e90c1e124719b547614b (diff) | |
chore: add a Toolbar component
Diffstat (limited to 'src/components/organisms/toolbar/toolbar.test.tsx')
| -rw-r--r-- | src/components/organisms/toolbar/toolbar.test.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/organisms/toolbar/toolbar.test.tsx b/src/components/organisms/toolbar/toolbar.test.tsx new file mode 100644 index 0000000..4bfe8a8 --- /dev/null +++ b/src/components/organisms/toolbar/toolbar.test.tsx @@ -0,0 +1,16 @@ +import { render, screen } from '@test-utils'; +import Toolbar from './toolbar'; + +const nav = [ + { id: 'home-link', href: '/', label: 'Home' }, + { id: 'blog-link', href: '/blog', label: 'Blog' }, + { id: 'cv-link', href: '/cv', label: 'CV' }, + { id: 'contact-link', href: '/contact', label: 'Contact' }, +]; + +describe('Toolbar', () => { + it('renders a navigation menu', () => { + render(<Toolbar nav={nav} />); + expect(screen.getByRole('navigation')).toBeInTheDocument(); + }); +}); |
