showing results for - "vue test utils emitted"
Agustín
28 Jun 2016
1// assert event has been emitted
2expect(wrapper.emitted('foo')).toBeTruthy()
3
4// assert event count
5expect(wrapper.emitted('foo').length).toBe(2)
6
7// assert event payload
8expect(wrapper.emitted('foo')[1]).toEqual([123])
9