about summary refs log tree commit diff
path: root/spec/javascript/components/features
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-10-16 16:33:08 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-10-16 09:33:08 +0200
commitd5b767c3747b9e7f9afcbcecffb662843ca2a346 (patch)
treebb88336c5bdce5b09358eefc310f9b098e81bfde /spec/javascript/components/features
parent93b54b8d4b51f87c6e9cf642d5f57f557e9cd555 (diff)
Replace JavaScript Testing Framework from Mocha to Jest (#5412)
Diffstat (limited to 'spec/javascript/components/features')
-rw-r--r--spec/javascript/components/features/ui/components/column.test.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/javascript/components/features/ui/components/column.test.js b/spec/javascript/components/features/ui/components/column.test.js
deleted file mode 100644
index 4491d6e19..000000000
--- a/spec/javascript/components/features/ui/components/column.test.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import { expect } from 'chai';
-import { mount } from 'enzyme';
-import sinon from 'sinon';
-import React from 'react';
-import Column from '../../../../../../app/javascript/mastodon/features/ui/components/column';
-import ColumnHeader from '../../../../../../app/javascript/mastodon/features/ui/components/column_header';
-
-describe('<Column />', () => {
-  describe('<ColumnHeader /> click handler', () => {
-    beforeEach(() => {
-      global.requestAnimationFrame = sinon.spy();
-    });
-
-    it('runs the scroll animation if the column contains scrollable content', () => {
-      const wrapper = mount(
-        <Column heading='notifications'>
-          <div className='scrollable' />
-        </Column>
-      );
-      wrapper.find(ColumnHeader).simulate('click');
-      expect(global.requestAnimationFrame.called).to.equal(true);
-    });
-
-    it('does not try to scroll if there is no scrollable content', () => {
-      const wrapper = mount(<Column heading='notifications' />);
-      wrapper.find(ColumnHeader).simulate('click');
-      expect(global.requestAnimationFrame.called).to.equal(false);
-    });
-  });
-});