1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/tests/unit/pages/publish.test.tsx
2020-05-13 12:17:22 +03:00

20 lines
646 B
TypeScript

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