1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-02-14 21:10:41 +01:00
portfolio/src/components/Layout.test.jsx

16 lines
461 B
JavaScript

import React from 'react'
import { render } from '@testing-library/react'
import { createHistory, createMemorySource } from '@reach/router'
import Layout from './Layout'
describe('Layout', () => {
const history = createHistory(createMemorySource('/oceanprotocol'))
it('renders correctly', () => {
const { container } = render(
<Layout location={history.location}>Hello</Layout>
)
expect(container.firstChild).toBeInTheDocument()
})
})