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/ci_lint/graphql/resolvers_spec.js')
-rw-r--r--spec/frontend/ci_lint/graphql/resolvers_spec.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/spec/frontend/ci_lint/graphql/resolvers_spec.js b/spec/frontend/ci_lint/graphql/resolvers_spec.js
deleted file mode 100644
index 437c52cf6b4..00000000000
--- a/spec/frontend/ci_lint/graphql/resolvers_spec.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import MockAdapter from 'axios-mock-adapter';
-import axios from '~/lib/utils/axios_utils';
-import httpStatus from '~/lib/utils/http_status';
-
-import resolvers from '~/ci_lint/graphql/resolvers';
-import { mockLintResponse } from '../mock_data';
-
-describe('~/ci_lint/graphql/resolvers', () => {
- let mock;
-
- beforeEach(() => {
- mock = new MockAdapter(axios);
- });
-
- afterEach(() => {
- mock.restore();
- });
-
- describe('Mutation', () => {
- describe('lintCI', () => {
- const endpoint = '/ci/lint';
-
- beforeEach(() => {
- mock.onPost(endpoint).reply(httpStatus.OK, mockLintResponse);
- });
-
- it('resolves lint data with type names', async () => {
- const result = resolvers.Mutation.lintCI(null, {
- endpoint,
- content: 'content',
- dry_run: true,
- });
-
- await expect(result).resolves.toMatchSnapshot();
- });
- });
- });
-});