From d1fcd10c04da165fff042a83e07d56dceb4e1aa6 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 24 Aug 2021 20:26:57 +0200 Subject: [PATCH] Fixed TS errors in tests --- test/common/AsideMenu.test.tsx | 4 ++-- test/common/MenuLayout.test.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/common/AsideMenu.test.tsx b/test/common/AsideMenu.test.tsx index 3eb9d918..22ef6a26 100644 --- a/test/common/AsideMenu.test.tsx +++ b/test/common/AsideMenu.test.tsx @@ -1,7 +1,7 @@ import { shallow, ShallowWrapper } from 'enzyme'; import { Mock } from 'ts-mockery'; import asideMenuCreator from '../../src/common/AsideMenu'; -import { ServerWithId } from '../../src/servers/data'; +import { ReachableServer } from '../../src/servers/data'; describe('', () => { let wrapped: ShallowWrapper; @@ -10,7 +10,7 @@ describe('', () => { beforeEach(() => { const AsideMenu = asideMenuCreator(DeleteServerButton); - wrapped = shallow(({ id: 'abc123' })} />); + wrapped = shallow(({ id: 'abc123' })} />); }); afterEach(() => wrapped.unmount()); diff --git a/test/common/MenuLayout.test.tsx b/test/common/MenuLayout.test.tsx index 1177b0e1..439bb81f 100644 --- a/test/common/MenuLayout.test.tsx +++ b/test/common/MenuLayout.test.tsx @@ -11,7 +11,7 @@ import { SemVer } from '../../src/utils/helpers/version'; describe('', () => { const ServerError = jest.fn(); const C = jest.fn(); - const MenuLayout = createMenuLayout(C, C, C, C, C, C, C, ServerError, C, C); + const MenuLayout = createMenuLayout(C, C, C, C, C, C, C, ServerError, C, C, C); let wrapper: ShallowWrapper; const createWrapper = (selectedServer: SelectedServer) => { wrapper = shallow(