mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
20 lines
605 B
TypeScript
20 lines
605 B
TypeScript
import React from 'react'
|
|
import { BrowserRouter as Router } from 'react-router-dom'
|
|
import { render } from '@testing-library/react'
|
|
import Routes from './Routes'
|
|
import { User } from './context'
|
|
import { userMockConnected } from './__mocks__/user-mock'
|
|
|
|
describe('Routes', () => {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(
|
|
<User.Provider value={userMockConnected}>
|
|
<Router>
|
|
<Routes />
|
|
</Router>
|
|
</User.Provider>
|
|
)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
})
|