diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 09:45:46 +0000 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /spec/frontend/notebook/cells/prompt_spec.js | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) | |
download | gitlab-ce-a7b3560714b4d9cc4ab32dffcd1f74a284b93580.tar.gz |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'spec/frontend/notebook/cells/prompt_spec.js')
-rw-r--r-- | spec/frontend/notebook/cells/prompt_spec.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/frontend/notebook/cells/prompt_spec.js b/spec/frontend/notebook/cells/prompt_spec.js index 8cdcd1f84de..89b2d7b2b90 100644 --- a/spec/frontend/notebook/cells/prompt_spec.js +++ b/spec/frontend/notebook/cells/prompt_spec.js @@ -1,4 +1,4 @@ -import Vue from 'vue'; +import Vue, { nextTick } from 'vue'; import PromptComponent from '~/notebook/cells/prompt.vue'; const Component = Vue.extend(PromptComponent); @@ -7,7 +7,7 @@ describe('Prompt component', () => { let vm; describe('input', () => { - beforeEach((done) => { + beforeEach(() => { vm = new Component({ propsData: { type: 'In', @@ -16,9 +16,7 @@ describe('Prompt component', () => { }); vm.$mount(); - setImmediate(() => { - done(); - }); + return nextTick(); }); it('renders in label', () => { @@ -31,7 +29,7 @@ describe('Prompt component', () => { }); describe('output', () => { - beforeEach((done) => { + beforeEach(() => { vm = new Component({ propsData: { type: 'Out', @@ -40,9 +38,7 @@ describe('Prompt component', () => { }); vm.$mount(); - setImmediate(() => { - done(); - }); + return nextTick(); }); it('renders in label', () => { |