Skip to content
代码片段 群组 项目
提交 8e63b61b 编辑于 作者: Thomas Hutterer's avatar Thomas Hutterer
浏览文件

Emit event instead of calling Vue instance method

上级 1bbf890f
No related branches found
No related tags found
无相关合并请求
......@@ -42,6 +42,7 @@ describe('TodosApp', () => {
};
const findTodoItems = () => wrapper.findAllComponents(TodoItem);
const findFirstTodoItem = () => wrapper.findComponent(TodoItem);
const findGlTabs = () => wrapper.findComponent(GlTabs);
const findFilterBar = () => wrapper.findComponent(TodosFilterBar);
const findMarkAllDoneButton = () => wrapper.findComponent(TodosMarkAllDoneButton);
......@@ -188,7 +189,7 @@ describe('TodosApp', () => {
expect(todosCountsQuerySuccessHandler).toHaveBeenCalledTimes(1);
// Simulate interacting with a todo item then mousing out of the list zone
wrapper.vm.handleItemChanged(1, true);
findFirstTodoItem().vm.$emit('change');
const list = findTodoItemListContainer();
list.trigger('mouseleave');
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册