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/content_editor/markdown_processing_spec.js')
-rw-r--r--spec/frontend/content_editor/markdown_processing_spec.js25
1 files changed, 11 insertions, 14 deletions
diff --git a/spec/frontend/content_editor/markdown_processing_spec.js b/spec/frontend/content_editor/markdown_processing_spec.js
index 4bbe5b4bcf4..3930f47289a 100644
--- a/spec/frontend/content_editor/markdown_processing_spec.js
+++ b/spec/frontend/content_editor/markdown_processing_spec.js
@@ -1,19 +1,16 @@
import path from 'path';
-import { createSharedExamples, loadMarkdownApiExamples } from './markdown_processing_spec_helper';
+import { describeMarkdownProcessing } from 'jest/content_editor/markdown_processing_spec_helper';
jest.mock('~/emoji');
+const markdownYamlPath = path.join(
+ __dirname,
+ '..',
+ '..',
+ 'fixtures',
+ 'markdown',
+ 'markdown_golden_master_examples.yml',
+);
+
// See spec/fixtures/markdown/markdown_golden_master_examples.yml for documentation on how this spec works.
-describe('markdown processing in ContentEditor', () => {
- // Ensure we generate same markdown that was provided to Markdown API.
- const markdownYamlPath = path.join(
- __dirname,
- '..',
- '..',
- 'fixtures',
- 'markdown',
- 'markdown_golden_master_examples.yml',
- );
- // eslint-disable-next-line jest/valid-describe
- describe.each(loadMarkdownApiExamples(markdownYamlPath))('%s', createSharedExamples);
-});
+describeMarkdownProcessing('CE markdown processing in ContentEditor', markdownYamlPath);