summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIllya Klymov <xanf@xanf.me>2019-08-27 16:14:15 +0300
committerIllya Klymov <xanf@xanf.me>2019-08-27 16:14:15 +0300
commit00920913e0d5f477f24f63c6b41d01c0e6cced50 (patch)
tree7df26b33fa9cf2adb3c119340985cd2e346e5410
parentf4ce990b0e2811cd2c3391fc5f11de990bc54f16 (diff)
downloadgitlab-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.js4
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);