tests: Fix table import

This commit is contained in:
Wei Zhu 2016-12-14 15:38:26 +08:00
parent 07103b9fb6
commit 666e80a1ba
6 changed files with 5 additions and 5 deletions

View File

@ -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.filter', () => {
const filterFn = (value, record) => record.name === 'Lucy';

View File

@ -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 = [{

View File

@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'enzyme';
import Table from '../table';
import Table from '..';
describe('Table.rowSelection', () => {
const columns = [{

View File

@ -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();

View File

@ -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;