From 5d3e8a4d0c2ce2ad8f22df857ab3ce54fcfc38ac Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
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
---
 .../organisms/modals/settings-modal.test.tsx       | 29 ----------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 src/components/organisms/modals/settings-modal.test.tsx

(limited to 'src/components/organisms/modals/settings-modal.test.tsx')

diff --git a/src/components/organisms/modals/settings-modal.test.tsx b/src/components/organisms/modals/settings-modal.test.tsx
deleted file mode 100644
index af2b6e9..0000000
--- a/src/components/organisms/modals/settings-modal.test.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { describe, expect, it } from '@jest/globals';
-import { render, screen as rtlScreen } from '../../../../tests/utils';
-import { SettingsModal } from './settings-modal';
-
-describe('SettingsModal', () => {
-  it('renders the modal heading', () => {
-    render(<SettingsModal />);
-    expect(rtlScreen.getByText(/Settings/i)).toBeInTheDocument();
-  });
-
-  it('renders a settings form', () => {
-    render(<SettingsModal />);
-    expect(
-      rtlScreen.getByRole('form', { name: /^Settings form/i })
-    ).toBeInTheDocument();
-    expect(
-      rtlScreen.getByRole('radiogroup', { name: /^Theme:/i })
-    ).toBeInTheDocument();
-    expect(
-      rtlScreen.getByRole('radiogroup', { name: /^Code blocks:/i })
-    ).toBeInTheDocument();
-    expect(
-      rtlScreen.getByRole('radiogroup', { name: /^Animations:/i })
-    ).toBeInTheDocument();
-    expect(
-      rtlScreen.getByRole('radiogroup', { name: /^Tracking:/i })
-    ).toBeInTheDocument();
-  });
-});
-- 
cgit v1.2.3

