From fc2c8b50ddbe5dead0c68cfb470e66c6adaee05b Mon Sep 17 00:00:00 2001 From: kibigo! Date: Fri, 17 Nov 2017 19:25:06 -0800 Subject: Removed glitch tests --- .../ui/components/__tests__/column-test.js | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 app/javascript/themes/glitch/features/ui/components/__tests__/column-test.js (limited to 'app/javascript/themes/glitch/features/ui/components') 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('', () => { - describe(' 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( - -
- - ); - 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(); - wrapper.find(ColumnHeader).simulate('click'); - expect(global.requestAnimationFrame.mock.calls.length).toEqual(0); - }); - }); -}); -- cgit