about summary refs log tree commit diff
path: root/spec/javascript
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-18 02:54:49 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-18 02:54:49 +0200
commitd5e086a47bedc93a1ab2d197e0400ef5bc2d0e3d (patch)
treea667b5b71c02419c03121004a08719c33b290408 /spec/javascript
parent7bb72ff198d9fb0747f8ded25140be35943484a0 (diff)
Adding application/jrd+json webfinger resource
Diffstat (limited to 'spec/javascript')
-rw-r--r--spec/javascript/components/display_name.test.jsx19
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/);
+  });
+});