Skip to content

Commit

Permalink
test(textarea): change event supports cursor parameter return
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Jan 5, 2024
1 parent db5649c commit 778a9ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textarea/__test__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ describe('textarea', () => {
expect(component.instance.data.count).toBe(10);
expect(handleChange.mock.calls[1][0].detail).toStrictEqual({
value: 'textarea用',
cursor: undefined,
});

$textarea.dispatchEvent('textarea', { detail: { value: 'textarea用于567' } });
Expand Down

0 comments on commit 778a9ac

Please sign in to comment.