diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 02:54:49 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 02:54:49 +0200 |
commit | d5e086a47bedc93a1ab2d197e0400ef5bc2d0e3d (patch) | |
tree | a667b5b71c02419c03121004a08719c33b290408 /spec/javascript | |
parent | 7bb72ff198d9fb0747f8ded25140be35943484a0 (diff) |
Adding application/jrd+json webfinger resource
Diffstat (limited to 'spec/javascript')
-rw-r--r-- | spec/javascript/components/display_name.test.jsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/javascript/components/display_name.test.jsx b/spec/javascript/components/display_name.test.jsx new file mode 100644 index 000000000..c25eb8530 --- /dev/null +++ b/spec/javascript/components/display_name.test.jsx @@ -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/); + }); +}); |