forked from cardosofelipe/fast-next-template
- Update PROJECT_NAME to Syndarix in backend config - Update all frontend components with Syndarix branding - Replace all GitHub URLs with Gitea Syndarix repo URLs - Update metadata, headers, footers with new branding - Update tests to match new URLs - Update E2E tests for new repo references - Preserve "Built on PragmaStack" attribution in docs Closes #13 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
983 B
TypeScript
36 lines
983 B
TypeScript
/**
|
|
* Tests for Footer Component
|
|
* Verifies footer rendering and content
|
|
*/
|
|
|
|
import { render, screen } from '@testing-library/react';
|
|
import { Footer } from '@/components/layout/Footer';
|
|
|
|
describe('Footer', () => {
|
|
describe('Rendering', () => {
|
|
it('renders footer element', () => {
|
|
const { container } = render(<Footer />);
|
|
|
|
const footer = container.querySelector('footer');
|
|
expect(footer).toBeInTheDocument();
|
|
});
|
|
|
|
it('displays copyright text with current year', () => {
|
|
render(<Footer />);
|
|
|
|
const currentYear = new Date().getFullYear();
|
|
expect(
|
|
screen.getByText(`© ${currentYear} Syndarix. All rights reserved.`)
|
|
).toBeInTheDocument();
|
|
});
|
|
|
|
it('applies correct styling classes', () => {
|
|
const { container } = render(<Footer />);
|
|
|
|
const footer = container.querySelector('footer');
|
|
expect(footer).toHaveClass('border-t');
|
|
expect(footer).toHaveClass('bg-muted/30');
|
|
});
|
|
});
|
|
});
|