We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26e13b commit 9c81d03Copy full SHA for 9c81d03
tests/Input.test.tsx
@@ -22,14 +22,14 @@ describe('src/index', () => {
22
})
23
24
25
- describe.only('simulate events', async () => {
+ describe('simulate events', () => {
26
let wrapper
27
- it('onchange event', async () => {
+ it('onchange event', () => {
28
wrapper = mount(<RenderInput />)
29
const input = wrapper.find('.or-input input')
30
input.simulate('change', { target: { value: 'Changed' } })
31
32
- expect(input.instance().value).toBe('Changed')
+ expect(wrapper.find('.or-input input').prop('value')).toBe('Changed')
33
34
35
0 commit comments