Commit cba5dd6d authored by Illya Klymov's avatar Illya Klymov

Replace trigger with emit on component

parent 0d01198a
......@@ -93,7 +93,7 @@ describe('Project List component', () => {
factory({ projects: mockProjects, stubs: { GlButton } });
getFirstRemoveButton().trigger('click');
getFirstRemoveButton().vm.$emit('click');
expect(wrapper.emitted('projectRemoved')).toHaveLength(1);
expect(wrapper.emitted('projectRemoved')).toEqual([[projectData]]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment