Skip to content

Commit

Permalink
update tests too
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 8, 2020
1 parent 2467ae0 commit d85da1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/InputBase/InputBase.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ describe('<InputBase />', () => {
});

it('should render an <textarea /> when passed the multiline and rows props', () => {
const { container } = render(<InputBase multiline rows="4" />);
const { container } = render(<InputBase multiline rows={4} />);
expect(container.querySelectorAll('textarea')).to.have.lengthOf(1);
});

it('should forward the value to the TextareaAutosize', () => {
const wrapper = mount(<InputBase multiline rowsMax="4" value="" />);
const wrapper = mount(<InputBase multiline rowsMax={4} value="" />);
expect(wrapper.find(TextareaAutosize).props()).to.have.property('value', '');
});
});
Expand Down
4 changes: 2 additions & 2 deletions test/regressions/tests/Textarea/Textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ function Textarea() {
input: classes.input2,
}}
/>
<Input className={classes.input} multiline placeholder="rows" rows="3" />
<Input className={classes.input} multiline placeholder="rows" rows={3} />
<Input
className={classes.input}
multiline
value={value}
onChange={handleChange}
rowsMax="4"
rowsMax={4}
/>
<Input className={classes.input} multiline placeholder="long placeholder long placeholder" />
<Input
Expand Down

0 comments on commit d85da1b

Please sign in to comment.