import { render, screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'

import { PageLayout } from './PageLayout'

describe('PageLayout', () => {
  it('renders children content', () => {
    render(
      <PageLayout>
        <div>page content</div>
      </PageLayout>,
    )

    expect(screen.getByText('page content')).toBeInTheDocument()
  })

  it('applies custom className', () => {
    render(
      <PageLayout className="custom-page-layout">
        <div>content</div>
      </PageLayout>,
    )

    const element = screen.getByText('content')
    expect(element.parentElement).toHaveClass('custom-page-layout')
  })
})
