mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-17 13:56:15 +02:00
Migrate to FontAwesome v6
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
||||
* Copyright (C) 2019-2024 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
||||
*
|
||||
* This is free software, licensed under the GNU General Public License v3.
|
||||
* See /LICENSE for more information.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import mockAxios from "jest-mock-axios";
|
||||
import moment from "moment-timezone";
|
||||
import "./mockGlobals";
|
||||
@ -26,3 +26,8 @@ jest.doMock("moment", () => {
|
||||
return moment;
|
||||
});
|
||||
Date.now = jest.fn(() => new Date(Date.UTC(2019, 1, 1, 12, 13, 14)).valueOf());
|
||||
|
||||
// Mock Font Awesome v6 library
|
||||
jest.mock("@fortawesome/react-fontawesome", () => ({
|
||||
FontAwesomeIcon: () => <i className="fa" />,
|
||||
}));
|
||||
|
Reference in New Issue
Block a user