1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 09:44:53 +01:00
market/tests/unit/components/Layout.test.tsx

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>
)
})