From c7b134621301227ead150d30fe9b222487a356b7 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 7 Apr 2022 11:51:59 +0200
Subject: chore: add a PrismThemeToggle component

---
 src/components/molecules/forms/prism-theme-toggle.test.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src/components/molecules/forms/prism-theme-toggle.test.tsx

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

diff --git a/src/components/molecules/forms/prism-theme-toggle.test.tsx b/src/components/molecules/forms/prism-theme-toggle.test.tsx
new file mode 100644
index 0000000..0dceb92
--- /dev/null
+++ b/src/components/molecules/forms/prism-theme-toggle.test.tsx
@@ -0,0 +1,13 @@
+import { render, screen } from '@test-utils';
+import PrismThemeToggle from './prism-theme-toggle';
+
+describe('PrismThemeToggle', () => {
+  it('renders a checked toggle (dark theme choice)', () => {
+    render(<PrismThemeToggle value={true} />);
+    expect(
+      screen.getByRole('checkbox', {
+        name: `Code blocks: Light theme Dark theme`,
+      })
+    ).toBeChecked();
+  });
+});
-- 
cgit v1.2.3

