1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/client/src/routes/About.test.tsx

24 lines
726 B
TypeScript

import React from 'react'
import { render } from '@testing-library/react'
import { MemoryRouter } from 'react-router'
import { createMemoryHistory, createLocation } from 'history'
import About from './About'
const history = createMemoryHistory()
const location = createLocation('/about')
describe('About', () => {
it('renders without crashing', () => {
const { container } = render(
<MemoryRouter>
<About
history={history}
location={location}
match={{ params: '', path: '', url: '', isExact: true }}
/>
</MemoryRouter>
)
expect(container.firstChild).toBeInTheDocument()
})
})