From d5b767c3747b9e7f9afcbcecffb662843ca2a346 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Mon, 16 Oct 2017 16:33:08 +0900 Subject: Replace JavaScript Testing Framework from Mocha to Jest (#5412) --- .../features/ui/components/column.test.js | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 spec/javascript/components/features/ui/components/column.test.js (limited to 'spec/javascript/components/features') 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('', () => { - describe(' click handler', () => { - beforeEach(() => { - global.requestAnimationFrame = sinon.spy(); - }); - - it('runs the scroll animation if the column contains scrollable content', () => { - const wrapper = mount( - -
- - ); - 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(); - wrapper.find(ColumnHeader).simulate('click'); - expect(global.requestAnimationFrame.called).to.equal(false); - }); - }); -}); -- cgit