mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-20 06:07:36 +00:00
20 lines
503 B
React
20 lines
503 B
React
|
import { expect } from 'chai';
|
||
|
import { render } from 'enzyme';
|
||
|
import Immutable from 'immutable';
|
||
|
|
||
|
import DisplayName from '../../../app/assets/javascripts/components/components/display_name'
|
||
|
|
||
|
describe('<DisplayName />', () => {
|
||
|
const account = Immutable.fromJS({
|
||
|
username: 'bar',
|
||
|
acct: 'bar@baz',
|
||
|
display_name: 'Foo'
|
||
|
});
|
||
|
|
||
|
const wrapper = render(<DisplayName account={account} />);
|
||
|
|
||
|
it('renders display name', () => {
|
||
|
expect(wrapper.text()).to.match(/Foo @bar@baz/);
|
||
|
});
|
||
|
});
|