From 666e80a1ba6e4cf168881d8dcfca7081600b97b5 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Wed, 14 Dec 2016 15:38:26 +0800 Subject: [PATCH] tests: Fix table import --- .../date-picker/__tests__/.demo.test.js.swp | Bin 12288 -> 0 bytes components/table/__tests__/Table.filter.test.js | 2 +- .../table/__tests__/Table.pagination.test.js | 2 +- .../table/__tests__/Table.rowSelection.test.js | 2 +- components/table/__tests__/Table.sorter.test.js | 2 +- components/table/__tests__/Table.test.js | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 components/date-picker/__tests__/.demo.test.js.swp diff --git a/components/date-picker/__tests__/.demo.test.js.swp b/components/date-picker/__tests__/.demo.test.js.swp deleted file mode 100644 index 0d79fd2b958ac341e729f9138b8458616a9540e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2&2AGh5XT+v1q2dj^QGMt-Q6Tes3Iz-UOFZ0?+E@VuKlCuX;#i3kt@B0vO)01+SpM1Tko z0U|&IhyW4z2MLIju{SG>eZjE*|1W?4f4;!j2aLBE+ZbCIH!*Htd_vKCj7J!&7~e7X ztE=(R)}cWJhyW2F0z`la5CI}U1c(3;AOe4jz#)!cz&IbuByZlj^|9>@G*(9nG#I~; z!iyRb<146AP$T(3%gWzZqOL&&L1g4mm}K_261AR5my*az8}3AWowvFErgeV923oY6 z!ma9Pvk~siGX=gEMU9m^Zp`A~1p^+(9CVRcFL~p*Dy?(cMC+zjYe%}kCDVR}Kf*;^HtXbUm+7oIX{mx=;jpgn%QJL~YDuq;v18 { const filterFn = (value, record) => record.name === 'Lucy'; diff --git a/components/table/__tests__/Table.pagination.test.js b/components/table/__tests__/Table.pagination.test.js index e9ac7fe52c..b62ed47539 100644 --- a/components/table/__tests__/Table.pagination.test.js +++ b/components/table/__tests__/Table.pagination.test.js @@ -1,7 +1,7 @@ import React from 'react'; import { render, mount } from 'enzyme'; import { renderToJson } from 'enzyme-to-json'; -import Table from '../table'; +import Table from '..'; describe('Table.pagination', () => { const columns = [{ diff --git a/components/table/__tests__/Table.rowSelection.test.js b/components/table/__tests__/Table.rowSelection.test.js index 7ac98b2b76..c2ee377f80 100644 --- a/components/table/__tests__/Table.rowSelection.test.js +++ b/components/table/__tests__/Table.rowSelection.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { mount } from 'enzyme'; -import Table from '../table'; +import Table from '..'; describe('Table.rowSelection', () => { const columns = [{ diff --git a/components/table/__tests__/Table.sorter.test.js b/components/table/__tests__/Table.sorter.test.js index 1680379305..cc5396bda0 100644 --- a/components/table/__tests__/Table.sorter.test.js +++ b/components/table/__tests__/Table.sorter.test.js @@ -1,7 +1,7 @@ import React from 'react'; import { render, mount } from 'enzyme'; import { renderToJson } from 'enzyme-to-json'; -import Table from '../table'; +import Table from '..'; describe('Table.sorter', () => { const sorterFn = (a, b) => a.name[0].charCodeAt() - b.name[0].charCodeAt(); diff --git a/components/table/__tests__/Table.test.js b/components/table/__tests__/Table.test.js index fc5778d078..5efeeb19f1 100644 --- a/components/table/__tests__/Table.test.js +++ b/components/table/__tests__/Table.test.js @@ -1,7 +1,7 @@ import React from 'react'; import { render, shallow } from 'enzyme'; import { renderToJson } from 'enzyme-to-json'; -import Table from '../table'; +import Table from '..'; const { Column, ColumnGroup } = Table;