📜  发出的 vue 测试实用程序 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:51.483000             🧑  作者: Mango

代码示例1
// 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])