about summary refs log tree commit diff
path: root/app/javascript/themes/glitch/features
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-11-17 19:25:06 -0800
committerkibigo! <marrus-sh@users.noreply.github.com>2017-11-17 19:29:17 -0800
commitfc2c8b50ddbe5dead0c68cfb470e66c6adaee05b (patch)
treebd099e0480c7dab0d7f38909bc842443629f08a3 /app/javascript/themes/glitch/features
parente19fc6a9f81e3756e0198006d2eafbc2f3acadb5 (diff)
Removed glitch tests
Diffstat (limited to 'app/javascript/themes/glitch/features')
-rw-r--r--app/javascript/themes/glitch/features/ui/components/__tests__/column-test.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/javascript/themes/glitch/features/ui/components/__tests__/column-test.js b/app/javascript/themes/glitch/features/ui/components/__tests__/column-test.js
deleted file mode 100644
index 1e5e1d8dc..000000000
--- a/app/javascript/themes/glitch/features/ui/components/__tests__/column-test.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from 'react';
-import { mount } from 'enzyme';
-import Column from '../column';
-import ColumnHeader from '../column_header';
-
-describe('<Column />', () => {
-  describe('<ColumnHeader /> click handler', () => {
-    const originalRaf = global.requestAnimationFrame;
-
-    beforeEach(() => {
-      global.requestAnimationFrame = jest.fn();
-    });
-
-    afterAll(() => {
-      global.requestAnimationFrame = originalRaf;
-    });
-
-    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.mock.calls.length).toEqual(1);
-    });
-
-    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.mock.calls.length).toEqual(0);
-    });
-  });
-});