1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fixed lint errors

This commit is contained in:
Bogdan Fazakas 2021-02-19 16:25:42 +02:00
parent 92547533a5
commit 5112a35524
4 changed files with 5 additions and 9 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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(<PublishForm content={content.form} />)
const { container } = render(<PublishForm />)
expect(container.firstChild).toBeInTheDocument()
})

View File

@ -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(
<Publish content={content} contentAlgoPublish={contentAlgo} />
)
const { container } = render(<Publish content={content} />)
expect(container.firstChild).toBeInTheDocument()
})
})