1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-16 13:46:16 +02:00

Set test modules.

This commit is contained in:
Bogdan Bodnar
2019-08-27 14:07:34 +02:00
parent 19df5c2630
commit 39a8c16824
4 changed files with 4 additions and 23 deletions

View File

@ -10,7 +10,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import {UIDReset} from 'react-uid';
import {StaticRouter} from 'react-router';
import {render} from '@testing-library/react'
Wrapper.propTypes = {
@ -21,11 +20,9 @@ Wrapper.propTypes = {
};
function Wrapper({children}) {
return <StaticRouter>
<UIDReset>
{children}
</UIDReset>
</StaticRouter>
return <UIDReset>
{children}
</UIDReset>
}
const customTestRender = (ui, options) => render(ui, {wrapper: Wrapper, ...options});