Commit f905a752 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'xanf-vtu-30-trigger-emit' into 'master'

Replace trigger with emit in test

Closes #191430

See merge request gitlab-org/gitlab!22315
parents 97f28e0a cba5dd6d
...@@ -93,7 +93,7 @@ describe('Project List component', () => { ...@@ -93,7 +93,7 @@ describe('Project List component', () => {
factory({ projects: mockProjects, stubs: { GlButton } }); factory({ projects: mockProjects, stubs: { GlButton } });
getFirstRemoveButton().trigger('click'); getFirstRemoveButton().vm.$emit('click');
return wrapper.vm.$nextTick().then(() => { return wrapper.vm.$nextTick().then(() => {
expect(wrapper.emitted('projectRemoved')).toHaveLength(1); expect(wrapper.emitted('projectRemoved')).toHaveLength(1);
......
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