Skip to content

Commit

Permalink
trying to inc coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288574 committed Apr 24, 2024
1 parent 3850339 commit 95227de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/game/GameConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 5 additions & 0 deletions webapp/src/components/game/GameConfiguration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ describe("Game Configuration", () => {
mockAxios.reset();
});

test('debe renderizar correctamente', () => {
const wrapper = shallow(<GameConfiguration />);
expect(wrapper.exists()).toBe(true);
});

test("renders GameConfig",async () => {

render(
Expand Down

0 comments on commit 95227de

Please sign in to comment.