mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-29 19:40:23 -05:00
8eb6d171e6
* feat: Cache status height to avoid expensive renders * feat: Escape content and emojify in reducers * fix(css): Remove backface-visibility: hidden from .scrollable * fix(statuses): Avoid creating DOMParses inside a loop
18 lines
546 B
JavaScript
18 lines
546 B
JavaScript
import { expect } from 'chai';
|
|
import { render } from 'enzyme';
|
|
import { fromJS } from 'immutable';
|
|
import React from 'react';
|
|
import DisplayName from '../../../app/javascript/mastodon/components/display_name';
|
|
|
|
describe('<DisplayName />', () => {
|
|
it('renders display name + account name', () => {
|
|
const account = fromJS({
|
|
username: 'bar',
|
|
acct: 'bar@baz',
|
|
display_name_html: '<p>Foo</p>',
|
|
});
|
|
const wrapper = render(<DisplayName account={account} />);
|
|
expect(wrapper).to.have.text('Foo @bar@baz');
|
|
});
|
|
});
|