summaryrefslogtreecommitdiff
path: root/spec/frontend/content_editor/markdown_processing_spec.js
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.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/frontend/content_editor/markdown_processing_spec.js b/spec/frontend/content_editor/markdown_processing_spec.js
index e435af30e9f..cb34476d680 100644
--- a/spec/frontend/content_editor/markdown_processing_spec.js
+++ b/spec/frontend/content_editor/markdown_processing_spec.js
@@ -1,12 +1,13 @@
-import { createEditor } from '~/content_editor';
+import { createContentEditor } from '~/content_editor';
import { loadMarkdownApiExamples, loadMarkdownApiResult } from './markdown_processing_examples';
describe('markdown processing', () => {
// Ensure we generate same markdown that was provided to Markdown API.
it.each(loadMarkdownApiExamples())('correctly handles %s', async (testName, markdown) => {
const { html } = loadMarkdownApiResult(testName);
- const editor = await createEditor({ content: markdown, renderMarkdown: () => html });
+ const contentEditor = createContentEditor({ renderMarkdown: () => html });
+ await contentEditor.setSerializedContent(markdown);
- expect(editor.getSerializedContent()).toBe(markdown);
+ expect(contentEditor.getSerializedContent()).toBe(markdown);
});
});