Answers for "vue test utils emitted"

0

vue test utils emitted

// assert event has been emitted
expect(wrapper.emitted('foo')).toBeTruthy()

// assert event count
expect(wrapper.emitted('foo').length).toBe(2)

// assert event payload
expect(wrapper.emitted('foo')[1]).toEqual([123])
Posted by: Guest on September-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language