diff options
Diffstat (limited to 'spec/frontend/ci/pipelines_page/components/pipeline_triggerer_spec.js')
-rw-r--r-- | spec/frontend/ci/pipelines_page/components/pipeline_triggerer_spec.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/frontend/ci/pipelines_page/components/pipeline_triggerer_spec.js b/spec/frontend/ci/pipelines_page/components/pipeline_triggerer_spec.js index cb04171f031..a4780cddc3c 100644 --- a/spec/frontend/ci/pipelines_page/components/pipeline_triggerer_spec.js +++ b/spec/frontend/ci/pipelines_page/components/pipeline_triggerer_spec.js @@ -29,7 +29,6 @@ describe('Pipelines Triggerer', () => { const findAvatarLink = () => wrapper.findComponent(GlAvatarLink); const findAvatar = () => wrapper.findComponent(GlAvatar); - const findTriggerer = () => wrapper.findByText('API'); describe('when user was a triggerer', () => { beforeEach(() => { @@ -42,7 +41,6 @@ describe('Pipelines Triggerer', () => { it('should render only user avatar', () => { expect(findAvatarLink().exists()).toBe(true); - expect(findTriggerer().exists()).toBe(false); }); it('should set correct props on avatar link component', () => { @@ -62,15 +60,4 @@ describe('Pipelines Triggerer', () => { expect(findAvatar().attributes().src).toBe(mockData.pipeline.user.avatar_url); }); }); - - describe('when API was a triggerer', () => { - beforeEach(() => { - createComponent({ pipeline: {} }); - }); - - it('should render label only', () => { - expect(findAvatarLink().exists()).toBe(false); - expect(findTriggerer().exists()).toBe(true); - }); - }); }); |