/* eslint-env jest */
import { render, screen } from '@testing-library/react'
import DefaultLayout from '../../src/layouts/DefaultLayout/DefaultLayout'
import '@testing-library/jest-dom'
describe('DefaultLayout', () => {
const props = {
children:
Test Content
}
it('renders without crashing', () => {
render()
})
it('renders Header', () => {
render()
expect(screen.getByTestId('header')).toBeInTheDocument()
})
it('renders Footer', () => {
render()
expect(screen.getByTestId('footer')).toBeInTheDocument()
})
it('renders children correctly', () => {
render()
expect(screen.getByText('Test Content')).toBeInTheDocument()
})
})