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
548 B

  1. import React from 'react';
  2. import DisplayName from '../../../app/javascript/mastodon/components/display_name';
  3. import { expect } from 'chai';
  4. import { render } from 'enzyme';
  5. import { fromJS } from 'immutable';
  6. describe('<DisplayName />', () => {
  7. xit('renders display name + account name', () => {
  8. const account = fromJS({
  9. username: 'bar',
  10. acct: 'bar@baz',
  11. display_name_html: '<p>Foo</p>',
  12. });
  13. const wrapper = render(<DisplayName account={account} />);
  14. expect(wrapper).to.have.text('Foo @bar@baz');
  15. });
  16. });