console\.log\('hello world'\)<\/div>/);
- });
-});
diff --git a/tests/progress/demo.test.js b/tests/progress/demo.test.js
deleted file mode 100644
index fbc616ffc7..0000000000
--- a/tests/progress/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('progress');
diff --git a/tests/radio/demo.test.js b/tests/radio/demo.test.js
deleted file mode 100644
index a663362e32..0000000000
--- a/tests/radio/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('radio');
diff --git a/tests/radio/group.test.js b/tests/radio/group.test.js
deleted file mode 100644
index 4a7730dc61..0000000000
--- a/tests/radio/group.test.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import React from 'react';
-import { shallow } from 'enzyme';
-import Radio from '../../components/radio';
-import RadioGroup from '../../components/radio/group';
-
-describe('Radio', () => {
- it('responses hover events', () => {
- const onMouseEnter = jest.fn();
- const onMouseLeave = jest.fn();
-
- const wrapper = shallow(
-
-
-
- );
-
- wrapper.simulate('mouseenter');
- expect(onMouseEnter).toHaveBeenCalled();
-
- wrapper.simulate('mouseleave');
- expect(onMouseLeave).toHaveBeenCalled();
- });
-});
diff --git a/tests/radio/radio.test.js b/tests/radio/radio.test.js
deleted file mode 100644
index 4cf93f3f30..0000000000
--- a/tests/radio/radio.test.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import React from 'react';
-import { shallow } from 'enzyme';
-import Radio from '../../components/radio';
-
-describe('Radio', () => {
- it('responses hover events', () => {
- const onMouseEnter = jest.fn();
- const onMouseLeave = jest.fn();
-
- const wrapper = shallow(
-
- );
-
- wrapper.simulate('mouseenter');
- expect(onMouseEnter).toHaveBeenCalled();
-
- wrapper.simulate('mouseleave');
- expect(onMouseLeave).toHaveBeenCalled();
- });
-});
diff --git a/tests/rate/demo.test.js b/tests/rate/demo.test.js
deleted file mode 100644
index 4e4b67d61e..0000000000
--- a/tests/rate/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('rate');
diff --git a/tests/select/demo.test.js b/tests/select/demo.test.js
deleted file mode 100644
index 5a5353703b..0000000000
--- a/tests/select/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('select');
diff --git a/tests/slider/demo.test.js b/tests/slider/demo.test.js
deleted file mode 100644
index 2f14516574..0000000000
--- a/tests/slider/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('slider');
diff --git a/tests/spin/demo.test.js b/tests/spin/demo.test.js
deleted file mode 100644
index 595ee83522..0000000000
--- a/tests/spin/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('spin');
diff --git a/tests/steps/demo.test.js b/tests/steps/demo.test.js
deleted file mode 100644
index 964edffe5b..0000000000
--- a/tests/steps/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('steps');
diff --git a/tests/switch/demo.test.js b/tests/switch/demo.test.js
deleted file mode 100644
index 8646786f73..0000000000
--- a/tests/switch/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('switch');
diff --git a/tests/table/SelectionBox.test.js b/tests/table/SelectionBox.test.js
deleted file mode 100644
index 9105b0225c..0000000000
--- a/tests/table/SelectionBox.test.js
+++ /dev/null
@@ -1,87 +0,0 @@
-import React from 'react';
-import { mount } from 'enzyme';
-import createStore from '../../components/table/createStore';
-import SelectionBox from '../../components/table/SelectionBox';
-
-describe('SelectionBox', () => {
- it('unchecked by selectedRowKeys ', () => {
- const store = createStore({
- selectedRowKeys: [],
- selectionDirty: false,
- });
-
- const wrapper = mount(
-
{}}
- defaultSelection={[]}
- />
- );
-
- expect(wrapper.state()).toEqual({ checked: false });
- });
-
- it('checked by selectedRowKeys ', () => {
- const store = createStore({
- selectedRowKeys: ['1'],
- selectionDirty: false,
- });
-
- const wrapper = mount(
- {}}
- defaultSelection={[]}
- />
- );
-
- expect(wrapper.state()).toEqual({ checked: true });
- });
-
- it('checked by defaultSelection', () => {
- const store = createStore({
- selectedRowKeys: [],
- selectionDirty: false,
- });
-
- const wrapper = mount(
- {}}
- defaultSelection={['1']}
- />
- );
-
- expect(wrapper.state()).toEqual({ checked: true });
- });
-
- it('checked when store change', () => {
- const store = createStore({
- selectedRowKeys: [],
- selectionDirty: false,
- });
-
- const wrapper = mount(
- {}}
- defaultSelection={[]}
- />
- );
-
- store.setState({
- selectedRowKeys: ['1'],
- selectionDirty: true,
- });
-
- expect(wrapper.state()).toEqual({ checked: true });
- });
-});
diff --git a/tests/table/Table.filter.test.js b/tests/table/Table.filter.test.js
deleted file mode 100644
index cd3a10fb28..0000000000
--- a/tests/table/Table.filter.test.js
+++ /dev/null
@@ -1,141 +0,0 @@
-import React from 'react';
-import { render, mount } from 'enzyme';
-import { renderToJson } from 'enzyme-to-json';
-import Table from '../../components/table';
-
-describe('Table.filter', () => {
- const filterFn = (value, record) => record.name === 'Lucy';
- const column = {
- title: 'Name',
- dataIndex: 'name',
- filters: [
- { text: 'Boy', value: 'boy' },
- { text: 'Girl', value: 'girl' },
- {
- text: 'Title',
- value: 'title',
- children: [
- { text: 'Designer', value: 'designer' },
- { text: 'Coder', value: 'coder' },
- ],
- },
- ],
- onFilter: filterFn,
- };
-
- const data = [
- { key: 0, name: 'Jack' },
- { key: 1, name: 'Lucy' },
- { key: 2, name: 'Tom' },
- { key: 3, name: 'Jerry' },
- ];
-
- function createTable(props) {
- return (
-
- );
- }
-
- it('renders filter correctly', () => {
- const wrapper = render(createTable());
-
- expect(renderToJson(wrapper)).toMatchSnapshot();
- });
-
- it('renders menu correctly', () => {
- const wrapper = mount(createTable());
- const dropdownWrapper = render(wrapper.find('Trigger').node.getComponent());
- expect(renderToJson(dropdownWrapper)).toMatchSnapshot();
- });
-
- it('renders radio filter correctly', () => {
- const wrapper = mount(createTable({
- columns: [{
- ...column,
- filterMultiple: false,
- }],
- }));
- const dropdownWrapper = render(wrapper.find('Trigger').node.getComponent());
- expect(renderToJson(dropdownWrapper)).toMatchSnapshot();
- });
-
- it('renders custom content correctly', () => {
- const filter = (
-
- custom filter
-
- );
- const wrapper = mount(createTable({
- columns: [{
- ...column,
- filterDropdown: filter,
- }],
- }));
-
- const dropdownWrapper = render(wrapper.find('Trigger').node.getComponent());
- expect(renderToJson(dropdownWrapper)).toMatchSnapshot();
- });
-
- it('can be controlled by filterDropdownVisible', () => {
- const wrapper = mount(createTable({
- columns: [{
- ...column,
- filterDropdownVisible: true,
- }],
- }));
- const dropdown = wrapper.find('Dropdown').first();
-
- expect(dropdown.props().visible).toBe(true);
- wrapper.setProps({ columns: [{
- ...column,
- filterDropdownVisible: false,
- }] });
- expect(dropdown.props().visible).toBe(false);
- });
-
- it('fires change event when visible change', () => {
- const handleChange = jest.fn();
- const wrapper = mount(createTable({
- columns: [{
- ...column,
- onFilterDropdownVisibleChange: handleChange,
- }],
- }));
-
- wrapper.find('Dropdown').first().simulate('click');
-
- expect(handleChange).toBeCalledWith(true);
- });
-
- it('can be controlled by filteredValue', () => {
- const wrapper = mount(createTable({
- columns: [{
- ...column,
- filteredValue: ['girl'],
- }],
- }));
-
- expect(wrapper.find('tbody tr').length).toBe(1);
- wrapper.setProps({ columns: [{
- ...column,
- filteredValue: [],
- }] });
- expect(wrapper.find('tbody tr').length).toBe(4);
- });
-
- it('fires change event', () => {
- const handleChange = jest.fn();
- const wrapper = mount(createTable({ onChange: handleChange }));
- const dropdownWrapper = mount(wrapper.find('Trigger').node.getComponent());
-
- dropdownWrapper.find('MenuItem').first().simulate('click');
- dropdownWrapper.find('.confirm').simulate('click');
-
- expect(handleChange).toBeCalledWith({}, { name: ['boy'] }, {});
- });
-});
diff --git a/tests/table/Table.pagination.test.js b/tests/table/Table.pagination.test.js
deleted file mode 100644
index 4b9a1b2a57..0000000000
--- a/tests/table/Table.pagination.test.js
+++ /dev/null
@@ -1,78 +0,0 @@
-import React from 'react';
-import { render, mount } from 'enzyme';
-import { renderToJson } from 'enzyme-to-json';
-import Table from '../../components/table';
-
-describe('Table.pagination', () => {
- const columns = [{
- title: 'Name',
- dataIndex: 'name',
- }];
-
- const data = [
- { key: 0, name: 'Jack' },
- { key: 1, name: 'Lucy' },
- { key: 2, name: 'Tom' },
- { key: 3, name: 'Jerry' },
- ];
-
- const pagination = { pageSize: 2 };
-
- function createTable(props) {
- return (
-
- );
- }
-
- function renderedNames(wrapper) {
- return wrapper.find('TableRow').map(row => row.props().record.name);
- }
-
- it('renders pagination correctly', () => {
- const wrapper = render(createTable());
- expect(renderToJson(wrapper)).toMatchSnapshot();
- });
-
- it('paginate data', () => {
- const wrapper = mount(createTable());
-
- expect(renderedNames(wrapper)).toEqual(['Jack', 'Lucy']);
- wrapper.find('Pager').last().simulate('click');
- expect(renderedNames(wrapper)).toEqual(['Tom', 'Jerry']);
- });
-
-
- it('repaginates when pageSize change', () => {
- const wrapper = mount(createTable());
-
- wrapper.setProps({ pagination: { pageSize: 1 } });
- expect(renderedNames(wrapper)).toEqual(['Jack']);
- });
-
- it('fires change event', () => {
- const handleChange = jest.fn();
- const noop = () => {};
- const wrapper = mount(createTable({
- pagination: { ...pagination, onChange: noop, onShowSizeChange: noop },
- onChange: handleChange,
- }));
-
- wrapper.find('Pager').last().simulate('click');
-
- expect(handleChange).toBeCalledWith(
- {
- current: 2,
- onChange: noop,
- onShowSizeChange: noop,
- pageSize: 2,
- },
- {},
- {}
- );
- });
-});
diff --git a/tests/table/Table.rowSelection.test.js b/tests/table/Table.rowSelection.test.js
deleted file mode 100644
index e3990d1e99..0000000000
--- a/tests/table/Table.rowSelection.test.js
+++ /dev/null
@@ -1,166 +0,0 @@
-import React from 'react';
-import { mount } from 'enzyme';
-import Table from '../../components/table';
-
-describe('Table.rowSelection', () => {
- const columns = [{
- title: 'Name',
- dataIndex: 'name',
- }];
-
- const data = [
- { key: 0, name: 'Jack' },
- { key: 1, name: 'Lucy' },
- { key: 2, name: 'Tom' },
- { key: 3, name: 'Jerry' },
- ];
-
- function createTable(props = {}) {
- return (
-
- );
- }
-
- it('select by checkbox', () => {
- const wrapper = mount(createTable());
- const checkboxes = wrapper.find('input');
- const checkboxAll = checkboxes.first();
-
- checkboxAll.simulate('change', { target: { checked: true } });
- expect(wrapper.instance().store.getState()).toEqual({
- selectedRowKeys: [0, 1, 2, 3],
- selectionDirty: true,
- });
-
- checkboxes.at(1).simulate('change', { target: { checked: false } });
- expect(wrapper.instance().store.getState()).toEqual({
- selectedRowKeys: [1, 2, 3],
- selectionDirty: true,
- });
-
- checkboxes.at(1).simulate('change', { target: { checked: true } });
- expect(wrapper.instance().store.getState()).toEqual({
- selectedRowKeys: [1, 2, 3, 0],
- selectionDirty: true,
- });
- });
-
- it('select by radio', () => {
- const wrapper = mount(createTable({ rowSelection: { type: 'radio' } }));
- const radios = wrapper.find('input');
-
- expect(radios.length).toBe(4);
-
- radios.first().simulate('change', { target: { checked: true } });
- expect(wrapper.instance().store.getState()).toEqual({
- selectedRowKeys: [0],
- selectionDirty: true,
- });
-
- radios.last().simulate('change', { target: { checked: true } });
- expect(wrapper.instance().store.getState()).toEqual({
- selectedRowKeys: [3],
- selectionDirty: true,
- });
- });
-
- it('pass getCheckboxProps to checkbox', () => {
- const rowSelection = {
- getCheckboxProps: record => ({
- disabled: record.name === 'Lucy',
- }),
- };
-
- const wrapper = mount(createTable({ rowSelection }));
- const checkboxes = wrapper.find('input');
-
- expect(checkboxes.at(1).props().disabled).toBe(false);
- expect(checkboxes.at(2).props().disabled).toBe(true);
- });
-
- it('works with pagination', () => {
- const wrapper = mount(createTable({ pagination: { pageSize: 2 } }));
-
- const checkboxAll = wrapper.find('SelectionCheckboxAll');
- const pagers = wrapper.find('Pager');
-
- checkboxAll.find('input').simulate('change', { target: { checked: true } });
- expect(checkboxAll.node.state).toEqual({ checked: true, indeterminate: false });
-
- pagers.at(1).simulate('click');
- expect(checkboxAll.node.state).toEqual({ checked: false, indeterminate: false });
-
- pagers.at(0).simulate('click');
- expect(checkboxAll.node.state).toEqual({ checked: true, indeterminate: false });
- });
-
- // https://github.com/ant-design/ant-design/issues/4020
- it('handles defaultChecked', () => {
- const rowSelection = {
- getCheckboxProps: record => ({
- defaultChecked: record.key === 0,
- }),
- };
-
- const wrapper = mount(createTable({ rowSelection }));
-
- const checkboxs = wrapper.find('input');
- expect(checkboxs.at(1).props().checked).toBe(true);
- expect(checkboxs.at(2).props().checked).toBe(false);
-
- checkboxs.at(2).simulate('change', { target: { checked: true } });
- expect(checkboxs.at(1).props().checked).toBe(true);
- expect(checkboxs.at(2).props().checked).toBe(true);
- });
-
- it('can be controlled', () => {
- const wrapper = mount(createTable({ rowSelection: { selectedRowKeys: [0] } }));
-
- expect(wrapper.instance().store.getState()).toEqual({
- selectedRowKeys: [0],
- selectionDirty: false,
- });
-
- wrapper.setProps({ rowSelection: { selectedRowKeys: [1] } });
-
- expect(wrapper.instance().store.getState()).toEqual({
- selectedRowKeys: [1],
- selectionDirty: false,
- });
- });
-
- it('fires change & select events', () => {
- const handleChange = jest.fn();
- const handleSelect = jest.fn();
- const rowSelection = {
- onChange: handleChange,
- onSelect: handleSelect,
- };
- const wrapper = mount(createTable({ rowSelection }));
-
- wrapper.find('input').last().simulate('change', { target: { checked: true } });
-
- expect(handleChange).toBeCalledWith([3], [{ key: 3, name: 'Jerry' }]);
- expect(handleSelect).toBeCalledWith(
- { key: 3, name: 'Jerry' },
- true,
- [{ key: 3, name: 'Jerry' }]
- );
- });
-
- it('fires selectAll event', () => {
- const handleSelectAll = jest.fn();
- const rowSelection = {
- onSelectAll: handleSelectAll,
- };
- const wrapper = mount(createTable({ rowSelection }));
-
- wrapper.find('input').first().simulate('change', { target: { checked: true } });
- expect(handleSelectAll).toBeCalledWith(true, data, data);
- });
-});
diff --git a/tests/table/Table.sorter.test.js b/tests/table/Table.sorter.test.js
deleted file mode 100644
index 1fc0dad358..0000000000
--- a/tests/table/Table.sorter.test.js
+++ /dev/null
@@ -1,71 +0,0 @@
-import React from 'react';
-import { render, mount } from 'enzyme';
-import { renderToJson } from 'enzyme-to-json';
-import Table from '../../components/table';
-
-describe('Table.sorter', () => {
- const sorterFn = (a, b) => a.name[0].charCodeAt() - b.name[0].charCodeAt();
-
- const column = {
- title: 'Name',
- dataIndex: 'name',
- sorter: sorterFn,
- };
-
- const data = [
- { key: 0, name: 'Jack' },
- { key: 1, name: 'Lucy' },
- { key: 2, name: 'Tom' },
- { key: 3, name: 'Jerry' },
- ];
-
- function createTable(props) {
- return (
-
- );
- }
-
- function renderedNames(wrapper) {
- return wrapper.find('TableRow').map(row => row.props().record.name);
- }
-
- it('renders sorter icon correctly', () => {
- const wrapper = render(createTable());
- expect(renderToJson(wrapper.find('thead'))).toMatchSnapshot();
- });
-
- it('sort records', () => {
- const wrapper = mount(createTable());
-
- wrapper.find('.ant-table-column-sorter-up').simulate('click');
- expect(renderedNames(wrapper)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']);
-
- wrapper.find('.ant-table-column-sorter-down').simulate('click');
- expect(renderedNames(wrapper)).toEqual(['Tom', 'Lucy', 'Jack', 'Jerry']);
- });
-
- it('can be controlled by sortOrder', () => {
- const wrapper = mount(createTable({
- columns: [{ ...column, sortOrder: 'ascend' }],
- }));
- expect(renderedNames(wrapper)).toEqual(['Jack', 'Jerry', 'Lucy', 'Tom']);
- });
-
- it('fires change event', () => {
- const handleChange = jest.fn();
- const wrapper = mount(createTable({ onChange: handleChange }));
-
- wrapper.find('.ant-table-column-sorter-up').simulate('click');
-
- const sorter = handleChange.mock.calls[0][2];
- expect(sorter.column.dataIndex).toBe('name');
- expect(sorter.order).toBe('ascend');
- expect(sorter.field).toBe('name');
- expect(sorter.columnKey).toBe('name');
- });
-});
diff --git a/tests/table/Table.test.js b/tests/table/Table.test.js
deleted file mode 100644
index 5366735c5c..0000000000
--- a/tests/table/Table.test.js
+++ /dev/null
@@ -1,63 +0,0 @@
-import React from 'react';
-import { render, shallow } from 'enzyme';
-import { renderToJson } from 'enzyme-to-json';
-import Table from '../../components/table';
-
-const { Column, ColumnGroup } = Table;
-
-describe('Table', () => {
- it('renders JSX correctly', () => {
- const data = [{
- key: '1',
- firstName: 'John',
- lastName: 'Brown',
- age: 32,
- }, {
- key: '2',
- firstName: 'Jim',
- lastName: 'Green',
- age: 42,
- }];
-
- const wrapper = render(
-
- );
-
- expect(renderToJson(wrapper)).toMatchSnapshot();
- });
-
- it('updates columns when receiving props', () => {
- const columns = [{
- title: 'Name',
- key: 'name',
- dataIndex: 'name',
- }];
- const wrapper = shallow();
- const newColumns = [{
- title: 'Title',
- key: 'title',
- dataIndex: 'title',
- }];
- wrapper.setProps({ columns: newColumns });
-
- expect(wrapper.instance().columns).toBe(newColumns);
- });
-});
diff --git a/tests/table/demo.test.js b/tests/table/demo.test.js
deleted file mode 100644
index 78f2d9ff47..0000000000
--- a/tests/table/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('table');
diff --git a/tests/tabs/demo.test.js b/tests/tabs/demo.test.js
deleted file mode 100644
index 3538aa6237..0000000000
--- a/tests/tabs/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('tabs');
diff --git a/tests/tag/demo.test.js b/tests/tag/demo.test.js
deleted file mode 100644
index 5785e200c2..0000000000
--- a/tests/tag/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('tag');
diff --git a/tests/time-picker/demo.test.js b/tests/time-picker/demo.test.js
deleted file mode 100644
index fb38b7f321..0000000000
--- a/tests/time-picker/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('time-picker');
diff --git a/tests/time-picker/index.test.js b/tests/time-picker/index.test.js
deleted file mode 100644
index 99b95aab80..0000000000
--- a/tests/time-picker/index.test.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from 'react';
-import { mount, render } from 'enzyme';
-import { renderToJson } from 'enzyme-to-json';
-import RcTimePicker from 'rc-time-picker/lib/TimePicker';
-import TimePicker from '../../components/time-picker';
-
-describe('TimePicker', () => {
- it('renders addon correctly', () => {
- const addon = () => ();
- const wrapper = mount();
- const rcTimePicker = wrapper.find(RcTimePicker);
- const addonWrapper = render(rcTimePicker.props().addon());
-
- expect(renderToJson(addonWrapper)).toMatchSnapshot();
- });
-});
diff --git a/tests/timeline/demo.test.js b/tests/timeline/demo.test.js
deleted file mode 100644
index bf13d7ec8b..0000000000
--- a/tests/timeline/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('timeline');
diff --git a/tests/tooltip/demo.test.js b/tests/tooltip/demo.test.js
deleted file mode 100644
index 1a6442a18a..0000000000
--- a/tests/tooltip/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('tooltip');
diff --git a/tests/transfer/demo.test.js b/tests/transfer/demo.test.js
deleted file mode 100644
index 74fc0ccdea..0000000000
--- a/tests/transfer/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('transfer');
diff --git a/tests/transfer/search.test.js b/tests/transfer/search.test.js
deleted file mode 100644
index d565aec069..0000000000
--- a/tests/transfer/search.test.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from 'react';
-import { mount } from 'enzyme';
-import { mountToJson } from 'enzyme-to-json';
-import Search from '../../components/transfer/search';
-
-describe('Search', () => {
- it('should show cross icon when input value exists', () => {
- const wrapper = mount();
-
- expect(mountToJson(wrapper)).toMatchSnapshot();
-
- wrapper.setProps({ value: 'a' });
-
- expect(mountToJson(wrapper)).toMatchSnapshot();
- });
-});
diff --git a/tests/tree-select/demo.test.js b/tests/tree-select/demo.test.js
deleted file mode 100644
index a4ae76676f..0000000000
--- a/tests/tree-select/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('tree-select');
diff --git a/tests/tree/demo.test.js b/tests/tree/demo.test.js
deleted file mode 100644
index a0eecf4bce..0000000000
--- a/tests/tree/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('tree');
diff --git a/tests/upload/demo.test.js b/tests/upload/demo.test.js
deleted file mode 100644
index 0bb0c95a99..0000000000
--- a/tests/upload/demo.test.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import demoTest from '../shared/demoTest';
-
-demoTest('upload');