logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

display_name-test.js (525B)


  1. import React from 'react';
  2. import renderer from 'react-test-renderer';
  3. import { fromJS } from 'immutable';
  4. import DisplayName from '../display_name';
  5. describe('<DisplayName />', () => {
  6. it('renders display name + account name', () => {
  7. const account = fromJS({
  8. username: 'bar',
  9. acct: 'bar@baz',
  10. display_name_html: '<p>Foo</p>',
  11. });
  12. const component = renderer.create(<DisplayName account={account} />);
  13. const tree = component.toJSON();
  14. expect(tree).toMatchSnapshot();
  15. });
  16. });