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/packages/list/coming_soon/helpers_spec.js')
-rw-r--r--spec/frontend/packages/list/coming_soon/helpers_spec.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/frontend/packages/list/coming_soon/helpers_spec.js b/spec/frontend/packages/list/coming_soon/helpers_spec.js
deleted file mode 100644
index 4a996bfad76..00000000000
--- a/spec/frontend/packages/list/coming_soon/helpers_spec.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import * as comingSoon from '~/packages/list/coming_soon/helpers';
-import { fakeIssues, asGraphQLResponse, asViewModel } from './mock_data';
-
-jest.mock('~/api.js');
-
-describe('Coming Soon Helpers', () => {
- const [noLabels, acceptingMergeRequestLabel, workflowLabel] = fakeIssues;
-
- describe('toViewModel', () => {
- it('formats a GraphQL response correctly', () => {
- expect(comingSoon.toViewModel(asGraphQLResponse)).toEqual(asViewModel);
- });
- });
-
- describe('findWorkflowLabel', () => {
- it('finds a workflow label', () => {
- expect(comingSoon.findWorkflowLabel(workflowLabel.labels)).toEqual(workflowLabel.labels[0]);
- });
-
- it("returns undefined when there isn't one", () => {
- expect(comingSoon.findWorkflowLabel(noLabels.labels)).toBeUndefined();
- });
- });
-
- describe('findAcceptingContributionsLabel', () => {
- it('finds the correct label when it exists', () => {
- expect(comingSoon.findAcceptingContributionsLabel(acceptingMergeRequestLabel.labels)).toEqual(
- acceptingMergeRequestLabel.labels[0],
- );
- });
-
- it("returns undefined when there isn't one", () => {
- expect(comingSoon.findAcceptingContributionsLabel(noLabels.labels)).toBeUndefined();
- });
- });
-});