From ba69457e249c5998a81fedb92162ed251bab86d3 Mon Sep 17 00:00:00 2001 From: Nolan Gregory <65730528+nulzo@users.noreply.github.com> Date: Sun, 3 Dec 2023 19:31:39 -0600 Subject: [PATCH] [FIX] - Fix formatting issues --- frontend/src/tests/theme.test.js | 42 -------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 frontend/src/tests/theme.test.js diff --git a/frontend/src/tests/theme.test.js b/frontend/src/tests/theme.test.js deleted file mode 100644 index 16e72ce..0000000 --- a/frontend/src/tests/theme.test.js +++ /dev/null @@ -1,42 +0,0 @@ -// import React from 'react'; -// import { render, screen, fireEvent } from '@testing-library/react'; -// import '@testing-library/jest-dom'; -// import { ModeToggle } from '@/forms/ModeToggle'; - - -// // Mock the useTheme hook -// jest.mock('@/forms/ModeToggle', () => ({ -// useTheme: () => ({ -// setTheme: jest.fn(), -// }), -// })); - -// describe('ModeToggle component', () => { -// it('renders without crashing', () => { -// render(); -// // You can add more specific assertions here based on your component's structure -// expect(screen.getByText('Toggle theme')).toBeInTheDocument(); -// }); - -// it('handles theme toggle', () => { -// render(); -// const lightOption = screen.getByText('Light'); -// const darkOption = screen.getByText('Dark'); -// const systemOption = screen.getByText('System'); - -// fireEvent.click(screen.getByText('Toggle theme')); - -// expect(lightOption).toBeInTheDocument(); -// expect(darkOption).toBeInTheDocument(); -// expect(systemOption).toBeInTheDocument(); - -// fireEvent.click(lightOption); -// expect(useTheme.setTheme).toHaveBeenCalledWith('light'); - -// fireEvent.click(darkOption); -// expect(useTheme.setTheme).toHaveBeenCalledWith('dark'); - -// fireEvent.click(systemOption); -// expect(useTheme.setTheme).toHaveBeenCalledWith('system'); -// }); -// });