From 2d5d015d23409b456e36a0370466ee42aa47631f Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 7 Apr 2022 11:58:33 +0200
Subject: chore: add a MotionToggle component

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

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

diff --git a/src/components/molecules/forms/motion-toggle.test.tsx b/src/components/molecules/forms/motion-toggle.test.tsx
new file mode 100644
index 0000000..77bc17c
--- /dev/null
+++ b/src/components/molecules/forms/motion-toggle.test.tsx
@@ -0,0 +1,13 @@
+import { render, screen } from '@test-utils';
+import MotionToggle from './motion-toggle';
+
+describe('MotionToggle', () => {
+  it('renders a checked toggle (deactivate animations choice)', () => {
+    render(<MotionToggle value={true} />);
+    expect(
+      screen.getByRole('checkbox', {
+        name: `Animations: On Off`,
+      })
+    ).toBeChecked();
+  });
+});
-- 
cgit v1.2.3

