import { render, screen } from '../../../tests/helpers/render';
import { FlowPills } from './FlowPills';
const Avatar = ({ id }: { id: number; size?: number }) => ;
const names: Record = { 1: 'alice', 2: 'bob' };
describe('FlowPills', () => {
it('shows the lead and one pill per person, even when a person turns up in two flows', () => {
render( names[id]} />);
expect(screen.getByText('to')).toBeInTheDocument();
expect(screen.getByText('alice')).toBeInTheDocument();
expect(screen.getByText('bob')).toBeInTheDocument();
expect(screen.getAllByTestId(/^avatar-/)).toHaveLength(2);
});
});