bigbuffet-rw/app/soapbox/components/__tests__/display-name.test.tsx
2023-06-20 14:24:39 -05:00

15 lines
462 B
TypeScript

import React from 'react';
import { buildAccount } from 'soapbox/jest/factory';
import { render, screen } from '../../jest/test-helpers';
import DisplayName from '../display-name';
describe('<DisplayName />', () => {
it('renders display name + account name', () => {
const account = buildAccount({ acct: 'bar@baz' });
render(<DisplayName account={account} />);
expect(screen.getByTestId('display-name')).toHaveTextContent('bar@baz');
});
});