diff options
Diffstat (limited to 'doc/development/fe_guide/vue.md')
-rw-r--r-- | doc/development/fe_guide/vue.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/development/fe_guide/vue.md b/doc/development/fe_guide/vue.md index 07b34cb4773..45c8300d9de 100644 --- a/doc/development/fe_guide/vue.md +++ b/doc/development/fe_guide/vue.md @@ -345,8 +345,6 @@ describe('Todos App', () => { it('should render todos', (done) => { - - setTimeout(() => { expect(vm.$el.querySelectorAll('.js-todo-list div').length).toBe(1); done(); @@ -397,8 +395,11 @@ the response we need: Vue.http.interceptors = _.without(Vue.http.interceptors, interceptor); }); - it('should do something', () => { - // Test received data + it('should do something', (done) => { + setTimeout(() => { + // Test received data + done(); + }, 0); }); ``` @@ -413,4 +414,4 @@ the response we need: [vue-resource-repo]: https://github.com/pagekit/vue-resource [vue-resource-interceptor]: https://github.com/pagekit/vue-resource/blob/develop/docs/http.md#interceptors [issue-boards-service]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/javascripts/boards/services/board_service.js.es6 -[flux]: https://facebook.github.io/flux/ +[flux]: https://facebook.github.io/flux |