From d5e086a47bedc93a1ab2d197e0400ef5bc2d0e3d Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Tue, 18 Oct 2016 02:54:49 +0200
Subject: Adding application/jrd+json webfinger resource

---
 spec/javascript/components/display_name.test.jsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 spec/javascript/components/display_name.test.jsx

(limited to 'spec/javascript/components/display_name.test.jsx')

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/);
+  });
+});
-- 
cgit 

