From e8bac61a7f0be6c60624b00e06ab8d00efc932f8 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 4 Apr 2022 18:46:05 +0200
Subject: chore: add a PlusMinus icon component

---
 src/components/atoms/icons/plus-minus.test.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 src/components/atoms/icons/plus-minus.test.tsx

(limited to 'src/components/atoms/icons/plus-minus.test.tsx')

diff --git a/src/components/atoms/icons/plus-minus.test.tsx b/src/components/atoms/icons/plus-minus.test.tsx
new file mode 100644
index 0000000..96c2ad0
--- /dev/null
+++ b/src/components/atoms/icons/plus-minus.test.tsx
@@ -0,0 +1,16 @@
+import { render, screen } from '@test-utils';
+import PlusMinus from './plus-minus';
+
+describe('PlusMinus', () => {
+  it('renders a plus icon', () => {
+    render(<PlusMinus state="plus" ariaHidden={false} ariaLabel="Plus icon" />);
+    expect(screen.getByLabelText('Plus icon')).toHaveClass('icon--plus');
+  });
+
+  it('renders a minus icon', () => {
+    render(
+      <PlusMinus state="minus" ariaHidden={false} ariaLabel="Minus icon" />
+    );
+    expect(screen.getByLabelText('Minus icon')).toHaveClass('icon--minus');
+  });
+});
-- 
cgit v1.2.3

