diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-17 19:25:06 -0800 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-17 19:29:17 -0800 |
commit | fc2c8b50ddbe5dead0c68cfb470e66c6adaee05b (patch) | |
tree | bd099e0480c7dab0d7f38909bc842443629f08a3 /app/javascript/themes/glitch/features/ui | |
parent | e19fc6a9f81e3756e0198006d2eafbc2f3acadb5 (diff) |
Removed glitch tests
Diffstat (limited to 'app/javascript/themes/glitch/features/ui')
-rw-r--r-- | app/javascript/themes/glitch/features/ui/components/__tests__/column-test.js | 34 |
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); - }); - }); -}); |