Skip to content

Commit

Permalink
follow warning convention
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 21, 2019
1 parent 457a73d commit 29e5beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/material-ui/src/ListItem/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ const ListItem = React.forwardRef(function ListItem(props, ref) {
} else {
warning(
false,
[
'Material-UI: Unable to set focus to a ListItem whose component has not been rendered.',
].join('\n'),
'Material-UI: Unable to set focus to a ListItem whose component has not been rendered.',
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/ListItem/ListItem.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('<ListItem />', () => {
assert.strictEqual(consoleErrorMock.callCount(), 1);
assert.include(
consoleErrorMock.args()[0][0],
'Warning: Material-UI: Unable to set focus to a ListItem whose component has not been rendered.',
'Warning: Material-UI: unable to set focus to a ListItem whose component has not been rendered.',
);
});
});
Expand Down

0 comments on commit 29e5beb

Please # to comment.