Skip to content

Commit

Permalink
[test] Add type test CardHeader title component
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 27, 2020
1 parent 2ed1144 commit ef90068
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/material-ui/src/CardHeader/CardHeader.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ function titleTypographyPropsTest() {
propThatDoesntExist: 'shouldNotWork',
}}
/>;
// Regression test for https://github.com/mui-org/material-ui/issues/21583
// which was probably fixed in https://github.com/mui-org/material-ui/pull/21552.
<CardHeader
title={<strong>Contemplative Reptile</strong>}
titleTypographyProps={{ component: 'h2' }}
/>;
}

function subheaderTypographyPropsTest() {
Expand Down

0 comments on commit ef90068

Please sign in to comment.