diff options
Diffstat (limited to 'spec/javascripts/ide/components/jobs/item_spec.js')
-rw-r--r-- | spec/javascripts/ide/components/jobs/item_spec.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/spec/javascripts/ide/components/jobs/item_spec.js b/spec/javascripts/ide/components/jobs/item_spec.js deleted file mode 100644 index 2f97d39e98e..00000000000 --- a/spec/javascripts/ide/components/jobs/item_spec.js +++ /dev/null @@ -1,39 +0,0 @@ -import Vue from 'vue'; -import JobItem from '~/ide/components/jobs/item.vue'; -import mountComponent from '../../../helpers/vue_mount_component_helper'; -import { jobs } from '../../mock_data'; - -describe('IDE jobs item', () => { - const Component = Vue.extend(JobItem); - const job = jobs[0]; - let vm; - - beforeEach(() => { - vm = mountComponent(Component, { - job, - }); - }); - - afterEach(() => { - vm.$destroy(); - }); - - it('renders job details', () => { - expect(vm.$el.textContent).toContain(job.name); - expect(vm.$el.textContent).toContain(`#${job.id}`); - }); - - it('renders CI icon', () => { - expect(vm.$el.querySelector('.ic-status_success_borderless')).not.toBe(null); - }); - - it('does not render view logs button if not started', done => { - vm.job.started = false; - - vm.$nextTick(() => { - expect(vm.$el.querySelector('.btn')).toBe(null); - - done(); - }); - }); -}); |