mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 11:03:50 +00:00
Fixed TS compile error in Home component test
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { shallow, ShallowWrapper } from 'enzyme';
|
import { shallow, ShallowWrapper } from 'enzyme';
|
||||||
import { Mock } from 'ts-mockery';
|
import { Mock } from 'ts-mockery';
|
||||||
|
import { RouteChildrenProps } from 'react-router-dom';
|
||||||
import Home, { HomeProps } from '../../src/common/Home';
|
import Home, { HomeProps } from '../../src/common/Home';
|
||||||
import { ServerWithId } from '../../src/servers/data';
|
import { ServerWithId } from '../../src/servers/data';
|
||||||
import { ShlinkLogo } from '../../src/common/img/ShlinkLogo';
|
import { ShlinkLogo } from '../../src/common/img/ShlinkLogo';
|
||||||
@@ -7,6 +8,7 @@ import { ShlinkLogo } from '../../src/common/img/ShlinkLogo';
|
|||||||
describe('<Home />', () => {
|
describe('<Home />', () => {
|
||||||
let wrapped: ShallowWrapper;
|
let wrapped: ShallowWrapper;
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
|
...Mock.all<RouteChildrenProps>(),
|
||||||
resetSelectedServer: jest.fn(),
|
resetSelectedServer: jest.fn(),
|
||||||
servers: {},
|
servers: {},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user