diff --git a/src/App.test.tsx b/src/App.test.tsx index cf68288..980e4bb 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -13,24 +13,7 @@ test('renders header', () => { expect(header[0]).toBeInTheDocument(); }); -// test('calls onClick when Hamburger button is clicked', () => { -// const handleClick = jest.fn(); -// render(); -// const button = screen.getByText('Click Me'); -// fireEvent.click(button); -// expect(handleClick).towHaveBeenCalledTimes(1);; -// }); - -// test('test for hamburger menu options ', () => { -// const handleClick = jest.fn(); -// render(); -// const button = screen.getByText('Click Me'); -// fireEvent.click(button); -// const menuitem = screen.getByText('Your Acheivements'); -// expect(menuitem).toBeInTheDocument(); -// }); - -test('should toggle menu on button click', () => { +test('should toggle hamburger menu on button click', () => { render(); const button = screen.getByTestId('toggle-button'); diff --git a/src/Header/Hamburgerbutton.tsx b/src/Header/Hamburgerbutton.tsx index 5158b5c..269408c 100644 --- a/src/Header/Hamburgerbutton.tsx +++ b/src/Header/Hamburgerbutton.tsx @@ -29,7 +29,7 @@ const Hamburger: React.FC = () => { {/* display the menu list of clicked/unclicked */} {isOpen && ( -
+
)}