mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-25 00:11:36 +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, "Reboot"));
|
||||||
fireEvent.click(getByText(componentContainer, "Confirm reboot"));
|
fireEvent.click(getByText(componentContainer, "Confirm reboot"));
|
||||||
expect(mockAxios.post).toHaveBeenCalledWith(
|
expect(mockAxios.post).toHaveBeenCalledWith(
|
||||||
"/reforis/api/reboot",
|
"/api/reboot",
|
||||||
undefined,
|
undefined,
|
||||||
expect.anything()
|
expect.anything()
|
||||||
);
|
);
|
||||||
|
|
|
@ -10,3 +10,4 @@ global._ = (str) => str;
|
||||||
global.ngettext = (str) => str;
|
global.ngettext = (str) => str;
|
||||||
global.babel = { format: (str) => str };
|
global.babel = { format: (str) => str };
|
||||||
global.ForisTranslations = { locale: "en" };
|
global.ForisTranslations = { locale: "en" };
|
||||||
|
global.setImmediate = (fn) => setTimeout(fn, 0);
|
Loading…
Reference in New Issue
Block a user