diff options
author | Dennis Tang <dtang@gitlab.com> | 2018-05-11 13:57:10 +0200 |
---|---|---|
committer | Dennis Tang <dtang@gitlab.com> | 2018-05-11 13:57:10 +0200 |
commit | 3daa298d9ab493ea30710505055eea63ae49fdfb (patch) | |
tree | 0f4b8cae23a04903d809ca55924b4755e2f4a493 /spec | |
parent | af3dd043610b9869183fb6238251b17e95ee922e (diff) | |
download | gitlab-ce-3daa298d9ab493ea30710505055eea63ae49fdfb.tar.gz |
eslint fixes
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js index 1c322262a73..98c21c009dd 100644 --- a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js +++ b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js @@ -42,31 +42,28 @@ describe('GkeProjectIdDropdown', () => { expect(vm.toggleText).toBe(LABELS.LOADING); }); - it('returns default toggle text', done => { - return vm.$nextTick().then(() => { + it('returns default toggle text', done => + vm.$nextTick().then(() => { vm.setItem(emptyProjectMock); expect(vm.toggleText).toBe(LABELS.DEFAULT); done(); - }); - }); + })); - it('returns project name if project selected', done => { - return vm.$nextTick().then(() => { + it('returns project name if project selected', done => + vm.$nextTick().then(() => { expect(vm.toggleText).toBe(selectedProjectMock.name); done(); - }); - }); + })); - it('returns empty toggle text', done => { - return vm.$nextTick().then(() => { + it('returns empty toggle text', done => + vm.$nextTick().then(() => { vm.$store.commit(SET_PROJECTS, []); vm.setItem(emptyProjectMock); expect(vm.toggleText).toBe(LABELS.EMPTY); done(); - }); - }); + })); }); describe('selectItem', () => { |