Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/jobs/components/table/jobs_table_empty_state_spec.js')
-rw-r--r--spec/frontend/jobs/components/table/jobs_table_empty_state_spec.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/frontend/jobs/components/table/jobs_table_empty_state_spec.js b/spec/frontend/jobs/components/table/jobs_table_empty_state_spec.js
deleted file mode 100644
index 05b066a9edc..00000000000
--- a/spec/frontend/jobs/components/table/jobs_table_empty_state_spec.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import { GlEmptyState } from '@gitlab/ui';
-import { shallowMount } from '@vue/test-utils';
-import JobsTableEmptyState from '~/jobs/components/table/jobs_table_empty_state.vue';
-
-describe('Jobs table empty state', () => {
- let wrapper;
-
- const pipelineEditorPath = '/root/project/-/ci/editor';
- const emptyStateSvgPath = 'assets/jobs-empty-state.svg';
-
- const findEmptyState = () => wrapper.findComponent(GlEmptyState);
-
- const createComponent = () => {
- wrapper = shallowMount(JobsTableEmptyState, {
- provide: {
- pipelineEditorPath,
- emptyStateSvgPath,
- },
- });
- };
-
- beforeEach(() => {
- createComponent();
- });
-
- it('displays empty state', () => {
- expect(findEmptyState().exists()).toBe(true);
- });
-
- it('links to the pipeline editor', () => {
- expect(findEmptyState().props('primaryButtonLink')).toBe(pipelineEditorPath);
- });
-
- it('shows an empty state image', () => {
- expect(findEmptyState().props('svgPath')).toBe(emptyStateSvgPath);
- });
-});