From 5d3e8a4d0c2ce2ad8f22df857ab3ce54fcfc38ac Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 3 Nov 2023 12:22:47 +0100 Subject: refactor(components): replace Toolbar with Navbar component * remove SearchModal and SettingsModal components * add a generic NavbarItem component (instead of the previous toolbar items to avoid unreadable styles...) * move FlippingLabel component logic into NavbarItem since it is only used here --- src/components/organisms/toolbar/toolbar.test.tsx | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/components/organisms/toolbar/toolbar.test.tsx (limited to 'src/components/organisms/toolbar/toolbar.test.tsx') diff --git a/src/components/organisms/toolbar/toolbar.test.tsx b/src/components/organisms/toolbar/toolbar.test.tsx deleted file mode 100644 index 23b13c1..0000000 --- a/src/components/organisms/toolbar/toolbar.test.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { describe, expect, it } from '@jest/globals'; -import { render, screen as rtlScreen } from '../../../../tests/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(); - expect(rtlScreen.getByRole('navigation')).toBeInTheDocument(); - }); -}); -- cgit v1.2.3