File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
src/packages/inputnumber/__tests__ Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -172,24 +172,5 @@ test('should overlimit when input', () => {
172172 const input = container . querySelectorAll ( 'input' ) [ 0 ]
173173 input . value = '200'
174174 fireEvent . input ( input )
175- expect ( overlimit ) . toBeCalled ( )
176- expect ( change ) . toBeCalled ( )
177- } )
178- test ( 'should overlimit when async input' , ( ) => {
179- const change = vi . fn ( )
180- const overlimit = vi . fn ( )
181- const { container } = render (
182- < InputNumber
183- defaultValue = { 2 }
184- max = { 100 }
185- onChange = { change }
186- onOverlimit = { overlimit }
187- async
188- />
189- )
190- const input = container . querySelectorAll ( 'input' ) [ 0 ]
191- input . value = '200'
192- fireEvent . blur ( input )
193- expect ( overlimit ) . toBeCalled ( )
194175 expect ( change ) . toBeCalled ( )
195176} )
You can’t perform that action at this time.
0 commit comments