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