mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 11:03:50 +00:00
Fixed types in Overview component test
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user