- Consolidated multi-line arguments into single lines where appropriate in `useAuth`. - Improved spacing and readability in data processing across components (`ProfileSettingsForm`, `PasswordChangeForm`, `SessionCard`). - Applied consistent table and markdown formatting in design system docs (e.g., `README.md`, `08-ai-guidelines.md`, `00-quick-start.md`). - Updated code snippets to ensure adherence to Prettier rules and streamlined JSX structures.
28 lines
707 B
TypeScript
28 lines
707 B
TypeScript
/**
|
|
* Tests for Preferences Page
|
|
* Verifies rendering of preferences placeholder
|
|
*/
|
|
|
|
import { render, screen } from '@testing-library/react';
|
|
import PreferencesPage from '@/app/(authenticated)/settings/preferences/page';
|
|
|
|
describe('PreferencesPage', () => {
|
|
it('renders page title', () => {
|
|
render(<PreferencesPage />);
|
|
|
|
expect(screen.getByText('Preferences')).toBeInTheDocument();
|
|
});
|
|
|
|
it('renders placeholder message', () => {
|
|
render(<PreferencesPage />);
|
|
|
|
expect(screen.getByText(/Configure your preferences/)).toBeInTheDocument();
|
|
});
|
|
|
|
it('mentions Task 3.5', () => {
|
|
render(<PreferencesPage />);
|
|
|
|
expect(screen.getByText(/Task 3.5/)).toBeInTheDocument();
|
|
});
|
|
});
|