Skip to content

Commit 8ac32a3

Browse files
committed
fix: test
1 parent aabb8b6 commit 8ac32a3

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/packages/inputnumber/__tests__/inputnumber.spec.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)