Skip to content

Commit

Permalink
test(unit): update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Jul 23, 2024
1 parent de51095 commit e73786f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/__tests__/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('Input', () => {
it(':maxlength', async () => {
const wrapper = mount(() => <Input label="标题" maxlength={10} />);
const input = wrapper.find('.t-input input');
expect(input.element.getAttribute('maxlength')).toBe('10');
expect(input.element.getAttribute('maxlength')).toBe(null);
});
it(':maxcharacter', async () => {
const value = ref('12345');
Expand Down

0 comments on commit e73786f

Please sign in to comment.