summaryrefslogtreecommitdiff
path: root/spec/frontend/content_editor/markdown_processing_examples.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/content_editor/markdown_processing_examples.js')
-rw-r--r--spec/frontend/content_editor/markdown_processing_examples.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/frontend/content_editor/markdown_processing_examples.js b/spec/frontend/content_editor/markdown_processing_examples.js
index 12bf2cbb747..12eed00f3c6 100644
--- a/spec/frontend/content_editor/markdown_processing_examples.js
+++ b/spec/frontend/content_editor/markdown_processing_examples.js
@@ -1,7 +1,6 @@
import fs from 'fs';
import path from 'path';
import jsYaml from 'js-yaml';
-import { toArray } from 'lodash';
import { getJSONFixture } from 'helpers/fixtures';
export const loadMarkdownApiResult = (testName) => {
@@ -15,5 +14,5 @@ export const loadMarkdownApiExamples = () => {
const apiMarkdownYamlText = fs.readFileSync(apiMarkdownYamlPath);
const apiMarkdownExampleObjects = jsYaml.safeLoad(apiMarkdownYamlText);
- return apiMarkdownExampleObjects.map((example) => toArray(example));
+ return apiMarkdownExampleObjects.map(({ name, context, markdown }) => [name, context, markdown]);
};