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/contracts/consumer/specs/project/pipeline_schedule/edit.spec.js')
-rw-r--r--spec/contracts/consumer/specs/project/pipeline_schedule/edit.spec.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/spec/contracts/consumer/specs/project/pipeline_schedule/edit.spec.js b/spec/contracts/consumer/specs/project/pipeline_schedule/edit.spec.js
deleted file mode 100644
index 117e6754255..00000000000
--- a/spec/contracts/consumer/specs/project/pipeline_schedule/edit.spec.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import { pactWith } from 'jest-pact';
-
-import { UpdatePipelineSchedule } from '../../../fixtures/project/pipeline_schedule/update_pipeline_schedule.fixture';
-import { updatePipelineSchedule } from '../../../resources/api/pipeline_schedules';
-
-const CONSUMER_NAME = 'PipelineSchedules#edit';
-const CONSUMER_LOG = '../logs/consumer.log';
-const CONTRACT_DIR = '../contracts/project/pipeline_schedule/edit';
-const PROVIDER_NAME = 'PUT Edit a pipeline schedule';
-
-// API endpoint: /pipelines.json
-pactWith(
- {
- consumer: CONSUMER_NAME,
- provider: PROVIDER_NAME,
- log: CONSUMER_LOG,
- dir: CONTRACT_DIR,
- },
-
- (provider) => {
- describe(PROVIDER_NAME, () => {
- beforeEach(() => {
- const interaction = {
- ...UpdatePipelineSchedule.scenario,
- ...UpdatePipelineSchedule.request,
- willRespondWith: UpdatePipelineSchedule.success,
- };
-
- provider.addInteraction(interaction);
- });
-
- it('returns a successful body', async () => {
- const pipelineSchedule = await updatePipelineSchedule({
- url: provider.mockService.baseUrl,
- });
-
- expect(pipelineSchedule.status).toEqual(UpdatePipelineSchedule.success.status);
- });
- });
- },
-);