1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/spec/javascript/components/display_name.test.jsx
2016-10-18 02:54:49 +02:00

19 lines
503 B
JavaScript

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/);
});
});