about summary refs log tree commit diff
path: root/spec/javascript/components/avatar.test.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'spec/javascript/components/avatar.test.jsx')
-rw-r--r--spec/javascript/components/avatar.test.jsx20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/javascript/components/avatar.test.jsx b/spec/javascript/components/avatar.test.jsx
deleted file mode 100644
index f70173880..000000000
--- a/spec/javascript/components/avatar.test.jsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { expect } from 'chai';
-import { render } from 'enzyme';
-
-import Avatar from '../../../app/javascript/mastodon/components/avatar'
-
-describe('<Avatar />', () => {
-  const src = '/path/to/image.jpg';
-  const size = 100;
-  const wrapper = render(<Avatar src={src} animate size={size} />);
-
-  it('renders a div element with the given src as background', () => {
-    expect(wrapper.find('div')).to.have.style('background-image', `url(${src})`);
-  });
-
-  it('renders a div element of the given size', () => {
-    ['width', 'height'].map((attr) => {
-      expect(wrapper.find('div')).to.have.style(attr, `${size}px`);
-    });
-  });
-});