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

16 lines
457 B
TypeScript
Raw Normal View History

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 20:07:57 +02:00
import web3ProviderMock, { context } from '../__mocks__/web3provider'
2020-05-07 08:03:30 +02:00
describe('Home', () => {
it('renders without crashing', () => {
const { container } = render(
2020-05-13 20:07:57 +02:00
<context.Provider value={web3ProviderMock}>
<Publish />
</context.Provider>
2020-05-07 08:03:30 +02:00
)
expect(container.firstChild).toBeInTheDocument()
})
})