Skip to content

Commit

Permalink
[TextField] changed createElement to jsx in TextField test file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndriyanenko committed Apr 14, 2020
1 parent a150ab9 commit 33a2311
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/material-ui/src/TextField/TextField.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,8 @@ function FocusHandlerTest() {

function createElementTextFieldTest() {
// $ExpectError
React.createElement<TextFieldProps>(TextField, {
FormHelperTextProps: {
component: 'some-wrong-element',
},
});
const stringParam = <TextField FormHelperTextProps={{ component: 'some-wrong-element' }} />;

// $ExpectError
React.createElement<TextFieldProps>(TextField, {
FormHelperTextProps: {
component: 1234,
},
});
const numberParam = <TextField FormHelperTextProps={{ component: 1234 }} />;
}

0 comments on commit 33a2311

Please sign in to comment.