Skip to content

Commit

Permalink
update render for table-cell test
Browse files Browse the repository at this point in the history
  • Loading branch information
natac13 committed Jan 30, 2021
1 parent e89f222 commit 7f509aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/material-ui/src/TableCell/TableCell.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ describe('<TableCell />', () => {
return wrapper.find('tr').childAt(0);
},
render: (node) => {
const { container, ...rest } = render(<table>{node}</table>);
return { container: container.firstChild, ...rest };
const { container, ...rest } = render(
<table>
<tbody>
<tr>{node}</tr>
</tbody>
</table>,
);
return { container: container.firstChild.firstChild.firstChild, ...rest };
},
muiName: 'MuiTableCell',
testVariantProps: { variant: 'body' },
Expand Down

0 comments on commit 7f509aa

Please sign in to comment.