1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00
market/tests/unit/pages/publish.test.tsx
2020-05-13 20:34:47 +03:00

21 lines
613 B
TypeScript

import React from 'react'
import { render } from '@testing-library/react'
import Publish from '../../../src/pages/publish'
import { OceanProvider, Config } from '@oceanprotocol/react'
import { config } from '../../../src/config/ocean'
import { Web3ProviderMock } from '../__mocks__/web3provider'
describe('Home', () => {
it('renders without crashing', () => {
const { container } = render(
<Web3ProviderMock>
<OceanProvider config={config as Config}>
<Publish />
</OceanProvider>
</Web3ProviderMock>
)
expect(container.firstChild).toBeInTheDocument()
})
})