2017-09-30 02:29:56 +00:00
|
|
|
import React from 'react';
|
|
|
|
import DisplayName from '../../../app/javascript/mastodon/components/display_name';
|
|
|
|
|
2016-10-18 00:54:49 +00:00
|
|
|
import { expect } from 'chai';
|
|
|
|
import { render } from 'enzyme';
|
2017-07-10 23:00:14 +00:00
|
|
|
import { fromJS } from 'immutable';
|
2016-10-18 00:54:49 +00:00
|
|
|
|
|
|
|
describe('<DisplayName />', () => {
|
2017-09-30 02:29:56 +00:00
|
|
|
xit('renders display name + account name', () => {
|
2017-07-10 23:00:14 +00:00
|
|
|
const account = fromJS({
|
2016-10-20 15:34:44 +00:00
|
|
|
username: 'bar',
|
|
|
|
acct: 'bar@baz',
|
2017-08-07 18:32:03 +00:00
|
|
|
display_name_html: '<p>Foo</p>',
|
2016-10-20 15:34:44 +00:00
|
|
|
});
|
|
|
|
const wrapper = render(<DisplayName account={account} />);
|
|
|
|
expect(wrapper).to.have.text('Foo @bar@baz');
|
2016-10-18 00:54:49 +00:00
|
|
|
});
|
|
|
|
});
|