You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
525 B

  1. import React from 'react';
  2. import renderer from 'react-test-renderer';
  3. import { fromJS } from 'immutable';
  4. import DisplayName from '../display_name';
  5. describe('<DisplayName />', () => {
  6. it('renders display name + account name', () => {
  7. const account = fromJS({
  8. username: 'bar',
  9. acct: 'bar@baz',
  10. display_name_html: '<p>Foo</p>',
  11. });
  12. const component = renderer.create(<DisplayName account={account} />);
  13. const tree = component.toJSON();
  14. expect(tree).toMatchSnapshot();
  15. });
  16. });