mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 09:44:53 +01:00
17 lines
503 B
TypeScript
17 lines
503 B
TypeScript
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
import Publish from '../../../src/pages/publish'
|
|
import web3ProviderMock from '../__mocks__/web3provider'
|
|
import { context } from '../../../src/context/Web3Context'
|
|
|
|
describe('Home', () => {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(
|
|
<context.Provider value={web3ProviderMock}>
|
|
<Publish />
|
|
</context.Provider>
|
|
)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|