mirror of
https://github.com/ant-design/ant-design.git
synced 2025-07-31 03:46:28 +08:00
tests: Fix table import
This commit is contained in:
parent
07103b9fb6
commit
666e80a1ba
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render, mount } from 'enzyme';
|
import { render, mount } from 'enzyme';
|
||||||
import { renderToJson } from 'enzyme-to-json';
|
import { renderToJson } from 'enzyme-to-json';
|
||||||
import Table from '../table';
|
import Table from '..';
|
||||||
|
|
||||||
describe('Table.filter', () => {
|
describe('Table.filter', () => {
|
||||||
const filterFn = (value, record) => record.name === 'Lucy';
|
const filterFn = (value, record) => record.name === 'Lucy';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render, mount } from 'enzyme';
|
import { render, mount } from 'enzyme';
|
||||||
import { renderToJson } from 'enzyme-to-json';
|
import { renderToJson } from 'enzyme-to-json';
|
||||||
import Table from '../table';
|
import Table from '..';
|
||||||
|
|
||||||
describe('Table.pagination', () => {
|
describe('Table.pagination', () => {
|
||||||
const columns = [{
|
const columns = [{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { mount } from 'enzyme';
|
import { mount } from 'enzyme';
|
||||||
import Table from '../table';
|
import Table from '..';
|
||||||
|
|
||||||
describe('Table.rowSelection', () => {
|
describe('Table.rowSelection', () => {
|
||||||
const columns = [{
|
const columns = [{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render, mount } from 'enzyme';
|
import { render, mount } from 'enzyme';
|
||||||
import { renderToJson } from 'enzyme-to-json';
|
import { renderToJson } from 'enzyme-to-json';
|
||||||
import Table from '../table';
|
import Table from '..';
|
||||||
|
|
||||||
describe('Table.sorter', () => {
|
describe('Table.sorter', () => {
|
||||||
const sorterFn = (a, b) => a.name[0].charCodeAt() - b.name[0].charCodeAt();
|
const sorterFn = (a, b) => a.name[0].charCodeAt() - b.name[0].charCodeAt();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render, shallow } from 'enzyme';
|
import { render, shallow } from 'enzyme';
|
||||||
import { renderToJson } from 'enzyme-to-json';
|
import { renderToJson } from 'enzyme-to-json';
|
||||||
import Table from '../table';
|
import Table from '..';
|
||||||
|
|
||||||
const { Column, ColumnGroup } = Table;
|
const { Column, ColumnGroup } = Table;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user