diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-28 15:09:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-28 15:09:30 +0300 |
commit | 73a14e23da782bbafad03a0cfe9fcab8f44f13f2 (patch) | |
tree | fa678e812e8ffe93be01c41130fc9fd6ccc4ee26 /spec/frontend/vue_shared/components/source_editor_spec.js | |
parent | 801820054081d4b795e6037a1c3e3d340dd831df (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared/components/source_editor_spec.js')
-rw-r--r-- | spec/frontend/vue_shared/components/source_editor_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/vue_shared/components/source_editor_spec.js b/spec/frontend/vue_shared/components/source_editor_spec.js index dca4d60e23c..9bc91c99dd9 100644 --- a/spec/frontend/vue_shared/components/source_editor_spec.js +++ b/spec/frontend/vue_shared/components/source_editor_spec.js @@ -77,7 +77,7 @@ describe('Source Editor component', () => { }); it('initialises Source Editor instance', () => { - const el = wrapper.find({ ref: 'editor' }).element; + const el = wrapper.findComponent({ ref: 'editor' }).element; expect(createInstanceMock).toHaveBeenCalledWith({ el, blobPath: fileName, @@ -112,7 +112,7 @@ describe('Source Editor component', () => { }); it('emits EDITOR_READY_EVENT event when the Source Editor is ready', async () => { - const el = wrapper.find({ ref: 'editor' }).element; + const el = wrapper.findComponent({ ref: 'editor' }).element; expect(wrapper.emitted()[EDITOR_READY_EVENT]).toBeUndefined(); await el.dispatchEvent(new Event(EDITOR_READY_EVENT)); |