mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-11-14 17:35:35 +01:00
Fix tests
This commit is contained in:
parent
499be46588
commit
cc1389536e
|
@ -46,7 +46,7 @@ describe("<RebootButton/>", () => {
|
|||
fireEvent.click(getByText(componentContainer, "Reboot"));
|
||||
fireEvent.click(getByText(componentContainer, "Confirm reboot"));
|
||||
expect(mockAxios.post).toHaveBeenCalledWith(
|
||||
"/reforis/api/reboot",
|
||||
"/api/reboot",
|
||||
undefined,
|
||||
expect.anything()
|
||||
);
|
||||
|
|
|
@ -10,3 +10,4 @@ global._ = (str) => str;
|
|||
global.ngettext = (str) => str;
|
||||
global.babel = { format: (str) => str };
|
||||
global.ForisTranslations = { locale: "en" };
|
||||
global.setImmediate = (fn) => setTimeout(fn, 0);
|
Loading…
Reference in New Issue
Block a user