Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TableComponent to Table
Browse files Browse the repository at this point in the history
mattkime committed Oct 4, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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'
@@ -36,7 +36,7 @@ const items = [
describe('Table', () => {
it('should render normally', async () => {
const component = shallowWithI18nProvider(
<TableComponent
<Table
indexPattern={indexPattern}
items={items}
editField={() => {}}
@@ -48,7 +48,7 @@ describe('Table', () => {

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

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

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

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

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

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

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

0 comments on commit 714029b

Please sign in to comment.