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

16 lines
424 B
TypeScript
Raw Normal View History

2019-04-30 19:19:28 +02:00
import React from 'react'
import { render } from '@testing-library/react'
2019-04-30 19:19:28 +02:00
import NotFound from './NotFound'
2019-06-18 00:05:40 +02:00
import { MemoryRouter } from 'react-router'
2019-04-30 19:19:28 +02:00
describe('NotFound', () => {
it('renders without crashing', () => {
2019-06-18 00:05:40 +02:00
const { container } = render(
<MemoryRouter>
<NotFound />
</MemoryRouter>
)
2019-04-30 19:19:28 +02:00
expect(container.firstChild).toBeInTheDocument()
})
})