From 0e52a59917406ad03c174e030c6c1c92ab23449d Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 30 Oct 2023 12:44:11 +0100
Subject: refactor(components): extract SettingsForm component form
 SettingsModal

We could use an array of items and map over it instead of repeating the
Switch component for each settings but with translations, it becomes
quickly unreadable. So I prefer to keep separate components.
---
 .../organisms/forms/theme-toggle/theme-toggle.test.tsx     | 14 --------------
 1 file changed, 14 deletions(-)
 delete mode 100644 src/components/organisms/forms/theme-toggle/theme-toggle.test.tsx

(limited to 'src/components/organisms/forms/theme-toggle/theme-toggle.test.tsx')

diff --git a/src/components/organisms/forms/theme-toggle/theme-toggle.test.tsx b/src/components/organisms/forms/theme-toggle/theme-toggle.test.tsx
deleted file mode 100644
index d735936..0000000
--- a/src/components/organisms/forms/theme-toggle/theme-toggle.test.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import { describe, expect, it } from '@jest/globals';
-import { render, screen as rtlScreen } from '../../../../../tests/utils';
-import { ThemeToggle } from './theme-toggle';
-
-describe('ThemeToggle', () => {
-  it('renders a toggle component', () => {
-    render(<ThemeToggle />);
-    expect(
-      rtlScreen.getByRole('radiogroup', {
-        name: /Theme:/i,
-      })
-    ).toBeInTheDocument();
-  });
-});
-- 
cgit v1.2.3

