From 95227de9455aced9721e9994525c49127c61c6f4 Mon Sep 17 00:00:00 2001 From: Liliana Date: Wed, 24 Apr 2024 21:14:17 +0200 Subject: [PATCH] trying to inc coverage --- webapp/src/components/game/GameConfiguration.js | 2 +- webapp/src/components/game/GameConfiguration.test.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/game/GameConfiguration.js b/webapp/src/components/game/GameConfiguration.js index 3bc08cc6..8fc885ca 100644 --- a/webapp/src/components/game/GameConfiguration.js +++ b/webapp/src/components/game/GameConfiguration.js @@ -3,7 +3,7 @@ import { Container } from '@mui/material'; import { Footer } from '../footer/Footer'; import { Nav } from '../nav/Nav'; import Button from '../Button'; -import { useLocation, useNavigate } from 'react-router-dom'; // Importa useHistory +import { useLocation } from 'react-router-dom'; // Importa useHistory import axios from 'axios' import { shuffleArray } from '../Util'; import './GameConfiguration.css'; diff --git a/webapp/src/components/game/GameConfiguration.test.js b/webapp/src/components/game/GameConfiguration.test.js index 460a808f..8882a45e 100644 --- a/webapp/src/components/game/GameConfiguration.test.js +++ b/webapp/src/components/game/GameConfiguration.test.js @@ -13,6 +13,11 @@ describe("Game Configuration", () => { mockAxios.reset(); }); + test('debe renderizar correctamente', () => { + const wrapper = shallow(); + expect(wrapper.exists()).toBe(true); + }); + test("renders GameConfig",async () => { render(