diff --git a/packages/nodes-base/nodes/Markdown/test/node/Markdown.test.ts b/packages/nodes-base/nodes/Markdown/test/node/Markdown.test.ts new file mode 100644 index 0000000000..5edd9dd6dd --- /dev/null +++ b/packages/nodes-base/nodes/Markdown/test/node/Markdown.test.ts @@ -0,0 +1,5 @@ +import { testWorkflows, getWorkflowFilenames } from '../../../../test/nodes/Helpers'; + +const workflows = getWorkflowFilenames(__dirname); + +describe('Test Markdown Node', () => testWorkflows(workflows)); diff --git a/packages/nodes-base/nodes/Markdown/test/node/workflow.markdown.json b/packages/nodes-base/nodes/Markdown/test/node/workflow.markdown.json new file mode 100644 index 0000000000..2203186227 --- /dev/null +++ b/packages/nodes-base/nodes/Markdown/test/node/workflow.markdown.json @@ -0,0 +1,181 @@ +{ + "name": "Markdown report generation", + "nodes": [ + { + "parameters": {}, + "name": "On clicking 'execute'", + "type": "n8n-nodes-base.manualTrigger", + "position": [700, 420], + "typeVersion": 1, + "id": "bc5de3f0-e5f1-4fc0-ab50-ef91bada8b35" + }, + { + "parameters": { + "html": "={{ $json.data }}", + "options": {} + }, + "id": "01b5727e-79a2-4cc1-b52f-32ea1ba67a6f", + "name": "Markdown1", + "type": "n8n-nodes-base.markdown", + "typeVersion": 1, + "position": [1200, 420] + }, + { + "parameters": { + "mode": "markdownToHtml", + "markdown": "={{ $json.data }}", + "options": { + "completeHTMLDocument": true + } + }, + "id": "43950238-9726-403e-a17a-a9cab8089041", + "name": "Markdown", + "type": "n8n-nodes-base.markdown", + "typeVersion": 1, + "position": [1500, 700] + }, + { + "parameters": { + "jsCode": "return {\n\"data\":\n`
This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
\n" + } + } + ], + "Markdown": [ + { + "json": { + "data": "\n\n\n\n\n\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.
\n\n\n" + } + } + ] + }, + "connections": { + "On clicking 'execute'": { + "main": [ + [ + { + "node": "Code", + "type": "main", + "index": 0 + } + ] + ] + }, + "Markdown1": { + "main": [ + [ + { + "node": "Markdown", + "type": "main", + "index": 0 + }, + { + "node": "Markdown4", + "type": "main", + "index": 0 + } + ] + ] + }, + "Code": { + "main": [ + [ + { + "node": "Markdown1", + "type": "main", + "index": 0 + }, + { + "node": "Markdown2", + "type": "main", + "index": 0 + }, + { + "node": "Markdown3", + "type": "main", + "index": 0 + } + ] + ] + } + }, + "active": false, + "settings": {}, + "versionId": "fadb0d9c-191d-461d-904c-5ce47763ae25", + "id": "115", + "meta": { + "instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0" + }, + "tags": [] +}