From 5112a35524e897c4120eee9aa176b80168bafda5 Mon Sep 17 00:00:00 2001 From: Bogdan Fazakas Date: Fri, 19 Feb 2021 16:25:42 +0200 Subject: [PATCH] fixed lint errors --- src/components/pages/Publish/FormAlgoPublish.tsx | 2 +- src/components/pages/Publish/FormPublish.tsx | 2 +- tests/unit/components/PublishForm.test.tsx | 3 +-- tests/unit/pages/publish.test.tsx | 7 ++----- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/components/pages/Publish/FormAlgoPublish.tsx b/src/components/pages/Publish/FormAlgoPublish.tsx index 61b56fbad..f45845fe1 100644 --- a/src/components/pages/Publish/FormAlgoPublish.tsx +++ b/src/components/pages/Publish/FormAlgoPublish.tsx @@ -36,7 +36,7 @@ const query = graphql` } ` -export default function FormPublish({}: {}): ReactElement { +export default function FormPublish(): ReactElement { const data = useStaticQuery(query) const content: FormContent = data.content.edges[0].node.childPagesJson const { ocean, account } = useOcean() diff --git a/src/components/pages/Publish/FormPublish.tsx b/src/components/pages/Publish/FormPublish.tsx index 5ba4864a8..ce2887012 100644 --- a/src/components/pages/Publish/FormPublish.tsx +++ b/src/components/pages/Publish/FormPublish.tsx @@ -36,7 +36,7 @@ const query = graphql` } ` -export default function FormPublish({}: {}): ReactElement { +export default function FormPublish(): ReactElement { const data = useStaticQuery(query) const content: FormContent = data.content.edges[0].node.childPagesJson const { ocean, account } = useOcean() diff --git a/tests/unit/components/PublishForm.test.tsx b/tests/unit/components/PublishForm.test.tsx index 758e168cb..44e5d469b 100644 --- a/tests/unit/components/PublishForm.test.tsx +++ b/tests/unit/components/PublishForm.test.tsx @@ -7,11 +7,10 @@ import { } from '../../../src/@types/MetaData' import PublishForm from '../../../src/components/pages/Publish/FormPublish' import publishFormData from '../__fixtures__/testFormData' -import content from '../../../content/pages/publish.json' describe('PublishForm', () => { it('renders without crashing', async () => { - const { container } = render() + const { container } = render() expect(container.firstChild).toBeInTheDocument() }) diff --git a/tests/unit/pages/publish.test.tsx b/tests/unit/pages/publish.test.tsx index 9accdb737..8c09f6b16 100644 --- a/tests/unit/pages/publish.test.tsx +++ b/tests/unit/pages/publish.test.tsx @@ -1,14 +1,11 @@ import React from 'react' import { render } from '@testing-library/react' import Publish from '../../../src/components/pages/Publish' -import content from '../../../content/pages/publish.json' -import contentAlgo from '../../../content/pages/publishAlgo.json' +import content from '../../../content/pages/index.json' describe('Home', () => { it('renders without crashing', () => { - const { container } = render( - - ) + const { container } = render() expect(container.firstChild).toBeInTheDocument() }) })