1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-28 00:27:40 +02: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()
})
})