import { render, screen } from '@testing-library/react' import { describe, expect, it } from 'vitest' import { UserCard } from './UserCard' describe('UserCard', () => { it('shows one email label for a whitespace-only display name', () => { render( ) expect(screen.getAllByText('ada@example.com')).toHaveLength(1) expect(screen.queryByTitle(' ')).not.toBeInTheDocument() }) })