diff --git a/webapp/src/components/Menu.test.js b/webapp/src/components/Menu.test.js index e4915281..9aacb75d 100644 --- a/webapp/src/components/Menu.test.js +++ b/webapp/src/components/Menu.test.js @@ -35,24 +35,4 @@ describe("Menu component", () => { expect(gamesBT).toHaveLength(1); }); - test('fetches topics and navigates to game configuration', async () => { - render( - - - - ); - - const topicsData = [{ id: 1, name: 'Topic 1' }, { id: 2, name: 'Topic 2' }]; - axios.get.mockResolvedValueOnce({ data: topicsData }); - const mockNavigation = jest.fn(); - const location = { state: { topics: topicsData } }; - - fireEvent.click(screen.getByText('Clásico')); - - await waitFor(() => { - expect(axios.get).toHaveBeenCalledWith(`${apiEndpoint}/topics`); - expect(mockNavigation).toHaveBeenCalledWith('/gameConfiguration', location); - }); - }); - }); \ No newline at end of file