0
0
Fork 0

Adding application/jrd+json webfinger resource

This commit is contained in:
Eugen Rochko 2016-10-18 02:54:49 +02:00
parent 7bb72ff198
commit d5e086a47b
6 changed files with 54 additions and 10 deletions

View file

@ -0,0 +1,19 @@
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/);
});
});