Skip to content

Commit

Permalink
test: Fix maxLength test case
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Dec 26, 2020
1 parent a10a30f commit 80f5613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/input/__tests__/textarea.test.js
Original file line number Diff line number Diff line change
@@ -140,7 +140,7 @@ describe('TextArea', () => {
it('maxLength', () => {
const wrapper = mount(<TextArea maxLength={5} showCount value="12345678" />);
const textarea = wrapper.find('.ant-input-textarea');
expect(wrapper.find('textarea').prop('value')).toBe('12345678');
expect(wrapper.find('textarea').prop('value')).toBe('12345');
expect(textarea.prop('data-count')).toBe('5 / 5');
});

0 comments on commit 80f5613

Please sign in to comment.