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:
parent
92547533a5
commit
5112a35524
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
})
|
||||
|
||||
|
@ -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()
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user