This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-09-29 19:29:56 -07:00
|
|
|
import React from 'react';
|
|
|
|
import DisplayName from '../../../app/javascript/mastodon/components/display_name';
|
|
|
|
|
2016-10-17 17:54:49 -07:00
|
|
|
import { expect } from 'chai';
|
|
|
|
import { render } from 'enzyme';
|
2017-07-10 16:00:14 -07:00
|
|
|
import { fromJS } from 'immutable';
|
2016-10-17 17:54:49 -07:00
|
|
|
|
|
|
|
describe('<DisplayName />', () => {
|
2017-09-29 19:29:56 -07:00
|
|
|
xit('renders display name + account name', () => {
|
2017-07-10 16:00:14 -07:00
|
|
|
const account = fromJS({
|
2016-10-20 08:34:44 -07:00
|
|
|
username: 'bar',
|
|
|
|
acct: 'bar@baz',
|
2017-08-07 11:32:03 -07:00
|
|
|
display_name_html: '<p>Foo</p>',
|
2016-10-20 08:34:44 -07:00
|
|
|
});
|
|
|
|
const wrapper = render(<DisplayName account={account} />);
|
|
|
|
expect(wrapper).to.have.text('Foo @bar@baz');
|
2016-10-17 17:54:49 -07:00
|
|
|
});
|
|
|
|
});
|