From 9ab215c2f3f8d70a9f15ad0c911b1426530cc9bd Mon Sep 17 00:00:00 2001 From: tjz <415800467@qq.com> Date: Sun, 10 Jun 2018 14:31:24 +0800 Subject: [PATCH] test: update input test --- components/input/__tests__/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/input/__tests__/index.test.js b/components/input/__tests__/index.test.js index e5a2ee95f..2c0ec5724 100644 --- a/components/input/__tests__/index.test.js +++ b/components/input/__tests__/index.test.js @@ -82,9 +82,9 @@ describe('As Form Control', () => { const wrapper = mount(DemoForm, { sync: false }) await asyncExpect(() => { wrapper.find('input').element.value = '111' - wrapper.find('input').trigger('change') + wrapper.find('input').trigger('input') wrapper.find('textarea').element.value = '222' - wrapper.find('textarea').trigger('change') + wrapper.find('textarea').trigger('input') }) await asyncExpect(() => { expect(wrapper.find('input').element.value).toBe('111')