mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
22 lines
549 B
TypeScript
22 lines
549 B
TypeScript
import React from 'react'
|
|
import { render } from '@testing-library/react'
|
|
import Home from '../../../src/components/pages/Home'
|
|
import {
|
|
createHistory,
|
|
createMemorySource,
|
|
LocationProvider
|
|
} from '@reach/router'
|
|
|
|
describe('Home', () => {
|
|
it('renders without crashing', () => {
|
|
const history = createHistory(createMemorySource('/search?text=water'))
|
|
|
|
const { container } = render(
|
|
<LocationProvider history={history}>
|
|
<Home />
|
|
</LocationProvider>
|
|
)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|