diff options
Diffstat (limited to 'spec/frontend/pipeline_editor/components/commit/commit_form_spec.js')
-rw-r--r-- | spec/frontend/pipeline_editor/components/commit/commit_form_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/pipeline_editor/components/commit/commit_form_spec.js b/spec/frontend/pipeline_editor/components/commit/commit_form_spec.js index 23219042008..7244a179820 100644 --- a/spec/frontend/pipeline_editor/components/commit/commit_form_spec.js +++ b/spec/frontend/pipeline_editor/components/commit/commit_form_spec.js @@ -1,3 +1,4 @@ +import { nextTick } from 'vue'; import { GlFormInput, GlFormTextarea } from '@gitlab/ui'; import { shallowMount, mount } from '@vue/test-utils'; @@ -32,7 +33,6 @@ describe('Pipeline Editor | Commit Form', () => { afterEach(() => { wrapper.destroy(); - wrapper = null; }); describe('when the form is displayed', () => { @@ -78,7 +78,7 @@ describe('Pipeline Editor | Commit Form', () => { it('emits an event when the form resets', () => { findCancelBtn().trigger('click'); - expect(wrapper.emitted('cancel')).toHaveLength(1); + expect(wrapper.emitted('resetContent')).toHaveLength(1); }); }); @@ -121,7 +121,7 @@ describe('Pipeline Editor | Commit Form', () => { beforeEach(async () => { createComponent(); wrapper.setProps({ scrollToCommitForm: true }); - await wrapper.vm.$nextTick(); + await nextTick(); }); it('scrolls into view', () => { |