mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-04-20 08:16:38 +02:00
23 lines
540 B
JavaScript
23 lines
540 B
JavaScript
/*
|
|
* Copyright (C) 2019-2022 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";
|
|
|
|
window.CustomizationContext = React.createContext();
|
|
|
|
const isCustomized = jest.fn();
|
|
|
|
function CustomizationContextMock({ children }) {
|
|
return (
|
|
<CustomizationContext.Provider value={isCustomized}>
|
|
{children}
|
|
</CustomizationContext.Provider>
|
|
);
|
|
}
|
|
|
|
export { CustomizationContextMock };
|