From 5c75a302c2203cb3ebf31233121026b4775662cf Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 8 Apr 2022 19:32:58 +0200
Subject: chore(icons): accept a classname as prop

---
 src/components/atoms/icons/plus-minus.test.tsx | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

(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
index 96c2ad0..6903c7a 100644
--- a/src/components/atoms/icons/plus-minus.test.tsx
+++ b/src/components/atoms/icons/plus-minus.test.tsx
@@ -1,16 +1,9 @@
-import { render, screen } from '@test-utils';
+import { render } 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');
+  it('renders a plus/minus icon', () => {
+    const { container } = render(<PlusMinus state="plus" />);
+    expect(container).toBeDefined();
   });
 });
-- 
cgit v1.2.3

