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

describe('Footer', () => {
  it('renders brand name and copyright with current year', () => {
    render(Footer)
    expect(screen.getByText('Omotomo')).toBeInTheDocument()
    const year = new Date().getFullYear()
    expect(screen.getByText(new RegExp(`©\\s*${year}`))).toBeInTheDocument()
    expect(screen.getByText(/All rights reserved/)).toBeInTheDocument()
  })
})
