Skip to content

Commit f5f3ed5

Browse files
committed
Fix failing tests
1 parent 41138a4 commit f5f3ed5

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

packages/material-ui/src/CardHeader/CardHeader.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('<CardHeader />', () => {
5959
it('should render the title as headline text', () => {
6060
const title = wrapper.childAt(0);
6161
assert.strictEqual(title.type(), Typography);
62-
assert.strictEqual(title.props().variant, 'headline');
62+
assert.strictEqual(title.props().variant, 'h5');
6363
});
6464

6565
it('should render the subheader as body1 secondary text', () => {

packages/material-ui/src/styles/createTypography.test.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,16 @@ describe('createTypography', () => {
4747
it('should apply a CSS property to all the variants', () => {
4848
const typography = createTypography(palette, { allVariants: { marginLeft: 0 } });
4949
const allVariants = [
50-
'display4',
51-
'display3',
52-
'display2',
53-
'display1',
54-
'headline',
55-
'title',
56-
'subheading',
57-
'body2',
50+
'h1',
51+
'h2',
52+
'h3',
53+
'h4',
54+
'h5',
55+
'h6',
56+
'subtitle1',
57+
'subtitle2',
5858
'body1',
59-
'caption',
60-
'button',
59+
'body2',
6160
];
6261

6362
allVariants.forEach(variant => {

0 commit comments

Comments
 (0)