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 data = useStaticQuery(query)
|
||||||
const content: FormContent = data.content.edges[0].node.childPagesJson
|
const content: FormContent = data.content.edges[0].node.childPagesJson
|
||||||
const { ocean, account } = useOcean()
|
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 data = useStaticQuery(query)
|
||||||
const content: FormContent = data.content.edges[0].node.childPagesJson
|
const content: FormContent = data.content.edges[0].node.childPagesJson
|
||||||
const { ocean, account } = useOcean()
|
const { ocean, account } = useOcean()
|
||||||
|
@ -7,11 +7,10 @@ import {
|
|||||||
} from '../../../src/@types/MetaData'
|
} from '../../../src/@types/MetaData'
|
||||||
import PublishForm from '../../../src/components/pages/Publish/FormPublish'
|
import PublishForm from '../../../src/components/pages/Publish/FormPublish'
|
||||||
import publishFormData from '../__fixtures__/testFormData'
|
import publishFormData from '../__fixtures__/testFormData'
|
||||||
import content from '../../../content/pages/publish.json'
|
|
||||||
|
|
||||||
describe('PublishForm', () => {
|
describe('PublishForm', () => {
|
||||||
it('renders without crashing', async () => {
|
it('renders without crashing', async () => {
|
||||||
const { container } = render(<PublishForm content={content.form} />)
|
const { container } = render(<PublishForm />)
|
||||||
expect(container.firstChild).toBeInTheDocument()
|
expect(container.firstChild).toBeInTheDocument()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { render } from '@testing-library/react'
|
import { render } from '@testing-library/react'
|
||||||
import Publish from '../../../src/components/pages/Publish'
|
import Publish from '../../../src/components/pages/Publish'
|
||||||
import content from '../../../content/pages/publish.json'
|
import content from '../../../content/pages/index.json'
|
||||||
import contentAlgo from '../../../content/pages/publishAlgo.json'
|
|
||||||
|
|
||||||
describe('Home', () => {
|
describe('Home', () => {
|
||||||
it('renders without crashing', () => {
|
it('renders without crashing', () => {
|
||||||
const { container } = render(
|
const { container } = render(<Publish content={content} />)
|
||||||
<Publish content={content} contentAlgoPublish={contentAlgo} />
|
|
||||||
)
|
|
||||||
expect(container.firstChild).toBeInTheDocument()
|
expect(container.firstChild).toBeInTheDocument()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user