Fixed types in Overview component test

This commit is contained in:
Alejandro Celaya 2022-04-24 11:28:32 +02:00
parent 460d2d23ce
commit 71b68562db

View file

@ -1,4 +1,4 @@
import { FC } from 'react'; import { FC, PropsWithChildren } from 'react';
import { mount, ReactWrapper } from 'enzyme'; import { mount, ReactWrapper } from 'enzyme';
import { Mock } from 'ts-mockery'; import { Mock } from 'ts-mockery';
import { Link, MemoryRouter } from 'react-router-dom'; import { Link, MemoryRouter } from 'react-router-dom';
@ -15,7 +15,7 @@ describe('<Overview />', () => {
let wrapper: ReactWrapper; let wrapper: ReactWrapper;
const ShortUrlsTable = () => null; const ShortUrlsTable = () => null;
const CreateShortUrl = () => null; const CreateShortUrl = () => null;
const ForServerVersion: FC = ({ children }) => <>{children}</>; const ForServerVersion: FC<PropsWithChildren<unknown>> = ({ children }) => <>{children}</>;
const listShortUrls = jest.fn(); const listShortUrls = jest.fn();
const listTags = jest.fn(); const listTags = jest.fn();
const loadVisitsOverview = jest.fn(); const loadVisitsOverview = jest.fn();