From 71b68562db3c8d6e0b5ce09119b34992464ca011 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 24 Apr 2022 11:28:32 +0200 Subject: [PATCH] Fixed types in Overview component test --- test/servers/Overview.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/servers/Overview.test.tsx b/test/servers/Overview.test.tsx index b678a7a5..1dbc7bcf 100644 --- a/test/servers/Overview.test.tsx +++ b/test/servers/Overview.test.tsx @@ -1,4 +1,4 @@ -import { FC } from 'react'; +import { FC, PropsWithChildren } from 'react'; import { mount, ReactWrapper } from 'enzyme'; import { Mock } from 'ts-mockery'; import { Link, MemoryRouter } from 'react-router-dom'; @@ -15,7 +15,7 @@ describe('', () => { let wrapper: ReactWrapper; const ShortUrlsTable = () => null; const CreateShortUrl = () => null; - const ForServerVersion: FC = ({ children }) => <>{children}; + const ForServerVersion: FC> = ({ children }) => <>{children}; const listShortUrls = jest.fn(); const listTags = jest.fn(); const loadVisitsOverview = jest.fn();