mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Matthias Kretschmann
ed57702ff3
* refactor layout * refactor * root components reordering * type-check fix
21 lines
466 B
TypeScript
21 lines
466 B
TypeScript
import React from 'react'
|
|
import testRender from '../testRender'
|
|
import Page from '../../../src/components/templates/Page'
|
|
import {
|
|
createHistory,
|
|
createMemorySource,
|
|
LocationProvider
|
|
} from '@reach/router'
|
|
|
|
describe('Page', () => {
|
|
const history = createHistory(createMemorySource('/'))
|
|
|
|
testRender(
|
|
<LocationProvider history={history}>
|
|
<Page title="Hello" uri={history.location.href}>
|
|
Hello
|
|
</Page>
|
|
</LocationProvider>
|
|
)
|
|
})
|