diff options
author | Lukas Eipert <leipert@gitlab.com> | 2018-05-17 10:24:30 +0200 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2018-05-17 10:24:30 +0200 |
commit | d593498ec9785a1cbee1547aa6c2e9b91e62b6ea (patch) | |
tree | 56e255bcace67daa90e438b21d05b64ffe3355d1 | |
parent | b080ec14f6ebaadf7e964f0c2bae325081925b86 (diff) | |
download | gitlab-ce-docs-vue-guide-update.tar.gz |
add line breaks to code exampledocs-vue-guide-update
-rw-r--r-- | doc/development/fe_guide/vue.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/development/fe_guide/vue.md b/doc/development/fe_guide/vue.md index dbdb4e139d8..e31ee087358 100644 --- a/doc/development/fe_guide/vue.md +++ b/doc/development/fe_guide/vue.md @@ -157,8 +157,8 @@ export default class Store { /** * This is where we will iniatialize the state of our data. - * Usually in a small SPA you don't need any options when starting the store. In the case you do - * need guarantee it's an Object and it's documented. + * Usually in a small SPA you don't need any options when starting the store. + * In that case you do need guarantee it's an Object and it's documented. * * @param {Object} options */ @@ -392,8 +392,9 @@ describe('Todos App', () => { ]); Vue.nextTick(() => { - expect(vm.$el.querySelectorAll('.js-todo-list div').length).toBe(1); - expect(vm.$el.querySelectorAll('.js-todo-list div')[0].textContent).toContain('This is the text'); + const items = vm.$el.querySelectorAll('.js-todo-list div') + expect(items.length).toBe(1); + expect(items[0].textContent).toContain('This is the text'); done(); }); }); |