Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroProtagonist committed Jan 5, 2018
1 parent ca07cad commit f17ba47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions packages/react-dom/src/__tests__/ReactServerRendering-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,11 @@ describe('ReactDOMServer', () => {
const typeUndefined = React.createElement(undefined);
expect(() => {
ReactDOMServer.renderToString(typeUndefined);
}).toThrowError(
'ReactElement type is invalid -- expected a string',
);
}).toThrowError('ReactElement type is invalid -- expected a string');
}).toWarnDev(
'Warning: React.createElement: type is invalid -- expected a string ' +
'(for built-in components) or a class/function (for composite ' +
'components) but got: undefined.'
'components) but got: undefined.',
);
});
});
Expand Down
5 changes: 1 addition & 4 deletions packages/react-dom/src/server/ReactPartialRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,7 @@ class ReactDOMServerRenderer {
parentNamespace: string,
): string {
if (typeof element.type !== 'string') {
invariant(
false,
'ReactElement type is invalid -- expected a string'
);
invariant(false, 'ReactElement type is invalid -- expected a string');
}
const tag = element.type.toLowerCase();

Expand Down

0 comments on commit f17ba47

Please sign in to comment.