2019-09-16 14:53:19 +02:00
|
|
|
import React from 'react'
|
2019-09-16 17:07:07 +02:00
|
|
|
import { render } from '@testing-library/react'
|
2019-12-12 20:48:00 +01:00
|
|
|
import Layout from './Layout'
|
2019-09-16 11:28:08 +02:00
|
|
|
|
2019-12-07 23:02:18 +01:00
|
|
|
describe('Layout', () => {
|
2019-09-16 19:01:33 +02:00
|
|
|
it('renders without crashing', () => {
|
2019-12-07 23:02:18 +01:00
|
|
|
const { container } = render(<Layout pageTitle="Hello">Hello</Layout>)
|
2019-09-16 17:07:07 +02:00
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
|
|
})
|
2019-09-16 14:53:19 +02:00
|
|
|
})
|