diff options
Diffstat (limited to 'spec/frontend/pipeline_schedules/components/table/cells/pipeline_schedule_target_spec.js')
-rw-r--r-- | spec/frontend/pipeline_schedules/components/table/cells/pipeline_schedule_target_spec.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/spec/frontend/pipeline_schedules/components/table/cells/pipeline_schedule_target_spec.js b/spec/frontend/pipeline_schedules/components/table/cells/pipeline_schedule_target_spec.js deleted file mode 100644 index 6817e58790b..00000000000 --- a/spec/frontend/pipeline_schedules/components/table/cells/pipeline_schedule_target_spec.js +++ /dev/null @@ -1,41 +0,0 @@ -import { GlIcon, GlLink } from '@gitlab/ui'; -import { shallowMount } from '@vue/test-utils'; -import PipelineScheduleTarget from '~/pipeline_schedules/components/table/cells/pipeline_schedule_target.vue'; -import { mockPipelineScheduleNodes } from '../../../mock_data'; - -describe('Pipeline schedule target', () => { - let wrapper; - - const defaultProps = { - schedule: mockPipelineScheduleNodes[0], - }; - - const createComponent = (props = defaultProps) => { - wrapper = shallowMount(PipelineScheduleTarget, { - propsData: { - ...props, - }, - }); - }; - - const findIcon = () => wrapper.findComponent(GlIcon); - const findLink = () => wrapper.findComponent(GlLink); - - beforeEach(() => { - createComponent(); - }); - - afterEach(() => { - wrapper.destroy(); - }); - - it('displays icon', () => { - expect(findIcon().exists()).toBe(true); - expect(findIcon().props('name')).toBe('fork'); - }); - - it('displays ref link', () => { - expect(findLink().attributes('href')).toBe(defaultProps.schedule.refPath); - expect(findLink().text()).toBe(defaultProps.schedule.refForDisplay); - }); -}); |