diff options
Diffstat (limited to 'spec/javascripts/vue_pipelines_index/error_state_spec.js')
-rw-r--r-- | spec/javascripts/vue_pipelines_index/error_state_spec.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/javascripts/vue_pipelines_index/error_state_spec.js b/spec/javascripts/vue_pipelines_index/error_state_spec.js deleted file mode 100644 index 524e018b1fa..00000000000 --- a/spec/javascripts/vue_pipelines_index/error_state_spec.js +++ /dev/null @@ -1,23 +0,0 @@ -import Vue from 'vue'; -import errorStateComp from '~/vue_pipelines_index/components/error_state'; - -describe('Pipelines Error State', () => { - let component; - let ErrorStateComponent; - - beforeEach(() => { - ErrorStateComponent = Vue.extend(errorStateComp); - - component = new ErrorStateComponent().$mount(); - }); - - it('should render error state SVG', () => { - expect(component.$el.querySelector('.svg-content svg')).toBeDefined(); - }); - - it('should render emtpy state information', () => { - expect( - component.$el.querySelector('h4').textContent, - ).toContain('The API failed to fetch the pipelines'); - }); -}); |