2020-05-07 08:03:30 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { render } from '@testing-library/react'
|
|
|
|
import Publish from '../../../src/pages/publish'
|
2020-05-13 19:34:47 +02:00
|
|
|
|
2020-05-13 11:17:22 +02:00
|
|
|
import { OceanProvider, Config } from '@oceanprotocol/react'
|
|
|
|
import { config } from '../../../src/config/ocean'
|
2020-05-13 19:34:47 +02:00
|
|
|
import { Web3ProviderMock } from '../__mocks__/web3provider'
|
2020-05-07 08:03:30 +02:00
|
|
|
|
|
|
|
describe('Home', () => {
|
|
|
|
it('renders without crashing', () => {
|
|
|
|
const { container } = render(
|
2020-05-13 19:34:47 +02:00
|
|
|
<Web3ProviderMock>
|
2020-05-13 11:17:22 +02:00
|
|
|
<OceanProvider config={config as Config}>
|
|
|
|
<Publish />
|
|
|
|
</OceanProvider>
|
2020-05-13 19:34:47 +02:00
|
|
|
</Web3ProviderMock>
|
2020-05-07 08:03:30 +02:00
|
|
|
)
|
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
|
|
})
|
|
|
|
})
|