Hovercard: update DisplayName snapshot

This commit is contained in:
Alex Gleason 2020-09-11 12:38:42 -05:00
parent 7494a0fd00
commit 7733905641
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 17 additions and 11 deletions

View file

@ -4,6 +4,11 @@ exports[`<DisplayName /> renders display name + account name 1`] = `
<span <span
className="display-name" className="display-name"
> >
<span
className="hover-ref-wrapper"
onMouseEnter={[Function]}
onMouseLeave={[Function]}
>
<bdi> <bdi>
<strong <strong
className="display-name__html" className="display-name__html"
@ -14,6 +19,7 @@ exports[`<DisplayName /> renders display name + account name 1`] = `
} }
/> />
</bdi> </bdi>
</span>
<span <span
className="display-name__account" className="display-name__account"
> >

View file

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable'; import { fromJS } from 'immutable';
import DisplayName from '../display_name'; import DisplayName from '../display_name';
import { createComponent } from 'soapbox/test_helpers';
describe('<DisplayName />', () => { describe('<DisplayName />', () => {
it('renders display name + account name', () => { it('renders display name + account name', () => {
@ -10,7 +10,7 @@ describe('<DisplayName />', () => {
acct: 'bar@baz', acct: 'bar@baz',
display_name_html: '<p>Foo</p>', display_name_html: '<p>Foo</p>',
}); });
const component = renderer.create(<DisplayName account={account} />); const component = createComponent(<DisplayName account={account} />);
const tree = component.toJSON(); const tree = component.toJSON();
expect(tree).toMatchSnapshot(); expect(tree).toMatchSnapshot();