Skip to content

Commit

Permalink
TableComponent to Table
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Oct 4, 2019
1 parent 26eadbe commit 714029b
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import React from 'react';
import { shallow } from 'enzyme';
import { shallowWithI18nProvider } from 'test_utils/enzyme_helpers';

import { TableComponent } from '../table';
import { Table } from '../table';

const indexPattern = {
timeFieldName: 'timestamp'
Expand All @@ -36,7 +36,7 @@ const items = [
describe('Table', () => {
it('should render normally', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
Expand All @@ -48,7 +48,7 @@ describe('Table', () => {

it('should render normal field name', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
Expand All @@ -61,7 +61,7 @@ describe('Table', () => {

it('should render timestamp field name', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
Expand All @@ -74,7 +74,7 @@ describe('Table', () => {

it('should render the boolean template (true)', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
Expand All @@ -87,7 +87,7 @@ describe('Table', () => {

it('should render the boolean template (false)', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
Expand All @@ -100,7 +100,7 @@ describe('Table', () => {

it('should render normal type', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
Expand All @@ -113,7 +113,7 @@ describe('Table', () => {

it('should render conflicting type', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
Expand All @@ -128,7 +128,7 @@ describe('Table', () => {
const editField = jest.fn();

const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={editField}
Expand Down

0 comments on commit 714029b

Please sign in to comment.