Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
new mock add
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenFern committed Apr 14, 2024
1 parent 3f0040e commit 5c59706
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp/src/components/nav/Nav.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ import { render, screen, act, waitFor } from '@testing-library/react';
import '../../i18n';
import { Nav } from './Nav';
import Swal from "sweetalert2";
import { Lang } from './lang/Lang';

jest.mock("sweetalert2");

jest.mock('./lang/Lang', () => ({
Lang: () => Lang
}));


describe("Nav component", () => {
beforeEach(() => localStorage.setItem("token", "manolineldelpino"));

Expand Down

0 comments on commit 5c59706

Please sign in to comment.