I'm trying to test an event similar to this:
// template: <form @submit.prevent="save"></form>
const save = jest.fn()
const wrapper = mount(MyComponent, {methods: { save }})
wrapper.find('form').trigger('submit.prevent')
expect(sav...
asked by
23.11.2018 / 14:32