Skip to content

Commit bfaeee7

Browse files
committed
fix incorrect render
1 parent 0ed8b64 commit bfaeee7

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/__tests__/fire-event.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,17 @@ test('fireEvent.update should not crash with input file', async () => {
232232
const changeSpy = jest.fn();
233233

234234
const {getByTestId} = render({
235-
template: `<input type="file" @change="$emit('change', $event)" @input="$emit('input, $event)" data-testid=test-update></input>`,
236-
}, {
237-
on: {
238-
input: inputSpy,
239-
change: changeSpy
235+
render(h) {
236+
return h('input', {
237+
on: {
238+
input: inputSpy,
239+
change: changeSpy
240+
},
241+
attrs: {
242+
type: 'file',
243+
'data-testid': 'test-update',
244+
},
245+
})
240246
}
241247
})
242248

0 commit comments

Comments
 (0)