Skip to content

Commit

Permalink
moved test case to correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
anishagg17 committed Feb 26, 2020
1 parent 67a1fc7 commit 666b952
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
10 changes: 0 additions & 10 deletions src/components/table/__snapshots__/table_header.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,3 @@ Array [
"children",
]
`;

exports[`EuiTableHeader renders td when children is null/undefined 1`] = `
<thead
aria-label="aria-label"
class="testClass1 testClass2"
data-test-subj="test subject string"
>
<tr />
</thead>
`;
18 changes: 18 additions & 0 deletions src/components/table/__snapshots__/table_header_cell.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,24 @@ exports[`renders EuiTableHeaderCell 1`] = `
</th>
`;

exports[`renders td when children is null/undefined 1`] = `
<td
aria-label="aria-label"
class="euiTableHeaderCell testClass1 testClass2"
data-test-subj="test subject string"
role="columnheader"
scope="col"
>
<div
class="euiTableCellContent testClass1 testClass2"
>
<span
class="euiTableCellContent__text"
/>
</div>
</td>
`;

exports[`width and style accepts style attribute 1`] = `
<th
class="euiTableHeaderCell"
Expand Down
6 changes: 0 additions & 6 deletions src/components/table/table_header.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@ describe('EuiTableHeader', () => {

expect(component).toMatchSnapshot();
});

test('renders td when children is null/undefined', () => {
const component = render(<EuiTableHeader {...requiredProps} />);

expect(component).toMatchSnapshot();
});
});
6 changes: 6 additions & 0 deletions src/components/table/table_header_cell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ test('renders EuiTableHeaderCell', () => {
expect(render(component)).toMatchSnapshot();
});

test('renders td when children is null/undefined', () => {
const component = render(<EuiTableHeaderCell {...requiredProps} />);

expect(component).toMatchSnapshot();
});

describe('align', () => {
test('defaults to left', () => {
const component = <EuiTableHeaderCell />;
Expand Down

0 comments on commit 666b952

Please sign in to comment.