diff options
author | Illya Klymov <xanf@xanf.me> | 2019-08-27 16:14:15 +0300 |
---|---|---|
committer | Illya Klymov <xanf@xanf.me> | 2019-08-27 16:14:15 +0300 |
commit | 00920913e0d5f477f24f63c6b41d01c0e6cced50 (patch) | |
tree | 7df26b33fa9cf2adb3c119340985cd2e346e5410 | |
parent | f4ce990b0e2811cd2c3391fc5f11de990bc54f16 (diff) | |
download | gitlab-ce-check-test-runs.tar.gz |
Test run: does it runs?check-test-runs
-rw-r--r-- | spec/javascripts/ide/components/branches/search_list_spec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/javascripts/ide/components/branches/search_list_spec.js b/spec/javascripts/ide/components/branches/search_list_spec.js index 72a3c2d5dcd..cb3dcf69f7c 100644 --- a/spec/javascripts/ide/components/branches/search_list_spec.js +++ b/spec/javascripts/ide/components/branches/search_list_spec.js @@ -1,4 +1,5 @@ import Vue from 'vue'; +import { GlLoadingIcon } from '@gitlab/ui'; import store from '~/ide/stores'; import * as types from '~/ide/stores/modules/branches/mutation_types'; import List from '~/ide/components/branches/search_list.vue'; @@ -25,6 +26,7 @@ describe('IDE branches search list', () => { }); it('calls fetch on mounted', () => { + throw new Error('test'); expect(vm.fetchBranches).toHaveBeenCalledWith({ search: '', }); @@ -35,7 +37,7 @@ describe('IDE branches search list', () => { vm.$nextTick() .then(() => { - expect(vm.$el).toContainElement('.loading-container'); + expect(vm.find(GlLoadingIcon).exists()).toBe(true); }) .then(done) .catch(done.fail); |