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/monitoring/components/group_empty_state_spec.js')
-rw-r--r--spec/frontend/monitoring/components/group_empty_state_spec.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/spec/frontend/monitoring/components/group_empty_state_spec.js b/spec/frontend/monitoring/components/group_empty_state_spec.js
deleted file mode 100644
index d3a48be7939..00000000000
--- a/spec/frontend/monitoring/components/group_empty_state_spec.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import { GlEmptyState } from '@gitlab/ui';
-import { shallowMount } from '@vue/test-utils';
-import { stubComponent } from 'helpers/stub_component';
-import GroupEmptyState from '~/monitoring/components/group_empty_state.vue';
-import { metricStates } from '~/monitoring/constants';
-
-function createComponent(props) {
- return shallowMount(GroupEmptyState, {
- propsData: {
- ...props,
- documentationPath: '/path/to/docs',
- settingsPath: '/path/to/settings',
- svgPath: '/path/to/empty-group-illustration.svg',
- },
- stubs: {
- GlEmptyState: stubComponent(GlEmptyState, {
- template: '<div><slot name="description"></slot></div>',
- }),
- },
- });
-}
-
-describe('GroupEmptyState', () => {
- let wrapper;
-
- describe.each([
- metricStates.NO_DATA,
- metricStates.TIMEOUT,
- metricStates.CONNECTION_FAILED,
- metricStates.BAD_QUERY,
- metricStates.LOADING,
- metricStates.UNKNOWN_ERROR,
- 'FOO STATE', // does not fail with unknown states
- ])('given state %s', (selectedState) => {
- beforeEach(() => {
- wrapper = createComponent({ selectedState });
- });
-
- it('renders the slotted content', () => {
- expect(wrapper.element).toMatchSnapshot();
- });
-
- it('passes the expected props to GlEmptyState', () => {
- expect(wrapper.findComponent(GlEmptyState).props()).toMatchSnapshot();
- });
- });
-});