mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-06-26 11:16:40 +02:00
15 lines
482 B
JavaScript
15 lines
482 B
JavaScript
import React from 'react'
|
|
import { render, screen } from '@testing-library/react'
|
|
import { createHistory, createMemorySource } from '@reach/router'
|
|
import Layout from './Layout'
|
|
|
|
describe('Layout', () => {
|
|
const history = createHistory(createMemorySource('/oceanprotocol'))
|
|
|
|
it('renders correctly', () => {
|
|
render(<Layout location={history.location}>Hello Layout</Layout>)
|
|
const element = screen.getByText('Hello Layout')
|
|
expect(element).toBeInTheDocument()
|
|
})
|
|
})
|