diff options
Diffstat (limited to 'spec/javascripts/vue_pipelines_index/pipelines_artifacts_spec.js')
-rw-r--r-- | spec/javascripts/vue_pipelines_index/pipelines_artifacts_spec.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/spec/javascripts/vue_pipelines_index/pipelines_artifacts_spec.js b/spec/javascripts/vue_pipelines_index/pipelines_artifacts_spec.js deleted file mode 100644 index f7f49649c1c..00000000000 --- a/spec/javascripts/vue_pipelines_index/pipelines_artifacts_spec.js +++ /dev/null @@ -1,40 +0,0 @@ -import Vue from 'vue'; -import artifactsComp from '~/vue_pipelines_index/components/pipelines_artifacts'; - -describe('Pipelines Artifacts dropdown', () => { - let component; - let artifacts; - - beforeEach(() => { - const ArtifactsComponent = Vue.extend(artifactsComp); - - artifacts = [ - { - name: 'artifact', - path: '/download/path', - }, - ]; - - component = new ArtifactsComponent({ - propsData: { - artifacts, - }, - }).$mount(); - }); - - it('should render a dropdown with the provided artifacts', () => { - expect( - component.$el.querySelectorAll('.dropdown-menu li').length, - ).toEqual(artifacts.length); - }); - - it('should render a link with the provided path', () => { - expect( - component.$el.querySelector('.dropdown-menu li a').getAttribute('href'), - ).toEqual(artifacts[0].path); - - expect( - component.$el.querySelector('.dropdown-menu li a span').textContent, - ).toContain(artifacts[0].name); - }); -}); |