about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/__tests__/button-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/components/__tests__/button-test.js')
-rw-r--r--app/javascript/mastodon/components/__tests__/button-test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/javascript/mastodon/components/__tests__/button-test.js b/app/javascript/mastodon/components/__tests__/button-test.js
index 160cd3cbc..924ba39dc 100644
--- a/app/javascript/mastodon/components/__tests__/button-test.js
+++ b/app/javascript/mastodon/components/__tests__/button-test.js
@@ -72,4 +72,11 @@ describe('<Button />', () => {
 
     expect(tree).toMatchSnapshot();
   });
+
+  it('renders title if props.title is given', () => {
+    const component = renderer.create(<Button title='foo' />);
+    const tree      = component.toJSON();
+
+    expect(tree).toMatchSnapshot();
+  });
 });