1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/tests/unit/components/Layout.test.tsx

21 lines
466 B
TypeScript
Raw Normal View History

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}>
2020-07-10 13:19:04 +02:00
<Layout title="Hello" uri={history.location.href}>
Hello
</Layout>
</LocationProvider>
)
})