diff options
-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); |