1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
2019-09-12 11:33:20 +02:00

21 lines
629 B
TypeScript

import React from 'react'
import { render } from '@testing-library/react'
import { createMemoryHistory, createLocation } from 'history'
import Details from './index'
const history = createMemoryHistory()
const location = createLocation('/asset/did:xxx')
describe('Details', () => {
it('renders loading state by default', () => {
const { container } = render(
<Details
history={history}
location={location}
match={{ params: '', path: '', url: '', isExact: true }}
/>
)
expect(container.firstChild).toBeInTheDocument()
})
})