mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 09:44:53 +01:00
19 lines
460 B
TypeScript
19 lines
460 B
TypeScript
|
import React from 'react'
|
||
|
import testRender from '../testRender'
|
||
|
import Layout from '../../../src/components/Layout'
|
||
|
import {
|
||
|
createHistory,
|
||
|
createMemorySource,
|
||
|
LocationProvider
|
||
|
} from '@reach/router'
|
||
|
|
||
|
describe('Layout', () => {
|
||
|
const history = createHistory(createMemorySource('/'))
|
||
|
|
||
|
testRender(
|
||
|
<LocationProvider history={history}>
|
||
|
<Layout location={{ href: 'https://demo.com' } as Location}>Hello</Layout>
|
||
|
</LocationProvider>
|
||
|
)
|
||
|
})
|