From 2374d0293509adb9c06ece8a11464ba3408c5ba9 Mon Sep 17 00:00:00 2001 From: Joshua Ow Date: Sat, 16 Mar 2024 22:16:55 -0700 Subject: [PATCH] chore: added unit test for cards sections to verify correct content is passed in (WEB-21) --- src/app/components/button/button.test.js | 7 ---- src/app/components/cardsSection/cards.test.js | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 src/app/components/cardsSection/cards.test.js diff --git a/src/app/components/button/button.test.js b/src/app/components/button/button.test.js index 82a7a2d..8e9dc02 100644 --- a/src/app/components/button/button.test.js +++ b/src/app/components/button/button.test.js @@ -1,6 +1,5 @@ import { render, screen, fireEvent } from '@testing-library/react'; import Button from './Button'; -import styles from './button.module.css'; jest.mock('./button.module.css', () => ({ button: 'button', @@ -28,12 +27,6 @@ test('renders correctly with primary variant', () => { expect(asFragment()).toMatchSnapshot(); }); -// test('has the correct class when variant is primary', () => { -// render(