- 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.
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
/**
|
|
* Tests for Admin Organizations Page
|
|
* Basic structural tests - full component testing in E2E tests
|
|
*/
|
|
|
|
import { render, screen } from '@testing-library/react';
|
|
import AdminOrganizationsPage from '@/app/admin/organizations/page';
|
|
|
|
// Mock the entire OrganizationManagementContent component
|
|
jest.mock('@/components/admin/organizations/OrganizationManagementContent', () => ({
|
|
OrganizationManagementContent: () => (
|
|
<div data-testid="organization-management">Organization Management</div>
|
|
),
|
|
}));
|
|
|
|
describe('AdminOrganizationsPage', () => {
|
|
it('renders with proper container structure', () => {
|
|
const { container } = render(<AdminOrganizationsPage />);
|
|
|
|
const containerDiv = container.querySelector('.container');
|
|
expect(containerDiv).toBeInTheDocument();
|
|
expect(containerDiv).toHaveClass('mx-auto', 'px-6', 'py-8');
|
|
});
|
|
|
|
it('renders organization management content', () => {
|
|
render(<AdminOrganizationsPage />);
|
|
|
|
expect(screen.getByTestId('organization-management')).toBeInTheDocument();
|
|
});
|
|
});
|