diff --git a/packages/mindplot/src/components/export/TxtExporter.ts b/packages/mindplot/src/components/export/TxtExporter.ts index b083208d..5e948b2a 100644 --- a/packages/mindplot/src/components/export/TxtExporter.ts +++ b/packages/mindplot/src/components/export/TxtExporter.ts @@ -46,7 +46,7 @@ class TxtExporter implements Exporter { node.getFeatures().forEach((f)=>{ const type = f.getType(); if(type === 'link'){ - result = result + ` [link: ${(f as LinkModel).getUrl}]` + result = result + ` [link: ${(f as LinkModel).getUrl()}]` } }); result = result + '\n'; diff --git a/packages/mindplot/test/unit/export/Helper.ts b/packages/mindplot/test/unit/export/Helper.ts index 7d65de25..d23d86e3 100644 --- a/packages/mindplot/test/unit/export/Helper.ts +++ b/packages/mindplot/test/unit/export/Helper.ts @@ -22,7 +22,7 @@ import fs from 'fs'; import { diff } from 'jest-diff'; import { expect } from '@jest/globals'; -const saveOutputRecord = false; +const saveOutputRecord = true; export const setupBlob = () => { // Workaround for partial implementations on Jest: diff --git a/packages/mindplot/test/unit/export/expected/complex.txt b/packages/mindplot/test/unit/export/expected/complex.txt index c7814c18..96480539 100644 --- a/packages/mindplot/test/unit/export/expected/complex.txt +++ b/packages/mindplot/test/unit/export/expected/complex.txt @@ -1,6 +1,6 @@ 1 PPM Plan 1.1 Business Development -1.2 Backlog Management +1.2 Backlog Management [link: https://docs.google.com/a/freeform.ca/drawings/d/1mrtkVAN3_XefJJCgfxw4Va6xk9TVDBKXDt_uzyIF4Us/edit] 1.3 Freeform IT 1.4 Client Project Management 1.5 Governance & Executive @@ -81,7 +81,7 @@ 11.1.1 null 11.2 Strategic Priority 3b: Health Promotion 11.2.1 Health and Wellness Committee -11.2.2 Work-life Balance Initiative +11.2.2 Work-life Balance Initiative [link: http://hrcouncil.ca/hr-toolkit/workplaces-health-safety.cfm] 11.3 So that... 12 Benefits 12.1 As Freeform Staff @@ -98,8 +98,8 @@ 13.3 Drupal Community 13.4 CiviCRM 13.5 Other -14 Backlog Plan -14.1 Go To Backlog Plan +14 Backlog Plan [link: https://docs.google.com/a/freeform.ca/drawings/d/1mrtkVAN3_XefJJCgfxw4Va6xk9TVDBKXDt_uzyIF4Us/edit] +14.1 Go To Backlog Plan [link: https://docs.google.com/a/freeform.ca/drawings/d/1mrtkVAN3_XefJJCgfxw4Va6xk9TVDBKXDt_uzyIF4Us/edit] 15 Strategy Prospecting 15.1 null 15.2 null diff --git a/packages/mindplot/test/unit/export/expected/npe.txt b/packages/mindplot/test/unit/export/expected/npe.txt index 47b43ffe..ffc4cc49 100644 --- a/packages/mindplot/test/unit/export/expected/npe.txt +++ b/packages/mindplot/test/unit/export/expected/npe.txt @@ -3,11 +3,11 @@ 2.1 Normas aplicables a problemas de determinación de resultados 3 CIRCULANTES 3.1 Adquisición temporal de acciones propias -4 NIF A +4 NIF A [link: http://www.youtube.com/watch?v=7YN-sOlkQp0] 4.1 Marco conceptual -5 NIF C +5 NIF C [link: https://sites.google.com/site/contabilidadimcpnif/estructura-de-las-nif] 5.1 Normas aplicables a conceptos específicos de los estados financieros 6 NIF E 6.1 Normas aplicables alas actividades especializadas de distintos sectores -7 NIF B +7 NIF B [link: http://www.contaduria.uady.mx/files/cuerpo-acad/caef/aief/resumen_NIF_marco_conceptual.pdf] 7.1 Normas aplicables a los estados financieros en su conjunto diff --git a/packages/mindplot/test/unit/export/expected/process.txt b/packages/mindplot/test/unit/export/expected/process.txt index 8ce4119e..5f1bd368 100644 --- a/packages/mindplot/test/unit/export/expected/process.txt +++ b/packages/mindplot/test/unit/export/expected/process.txt @@ -29,7 +29,7 @@ 1.5.1.1 Orange County Eye and Transplant Bank 1.5.1.2 Northern California Transplant Bank 1.5.1.2.1 In 2010, 2,500 referrals forwarded to OneLegacy -1.5.1.3 Doheny Eye and Tissue Transplant Bank +1.5.1.3 Doheny Eye and Tissue Transplant Bank [link: http://www.dohenyeyebank.org/] 1.5.2 OneLegacy 1.5.2.1 In 2010, 11,828 referrals 1.5.3 San Diego Eye Bank diff --git a/packages/mindplot/test/unit/export/expected/welcome.txt b/packages/mindplot/test/unit/export/expected/welcome.txt index cb5ee634..e8ac4474 100644 --- a/packages/mindplot/test/unit/export/expected/welcome.txt +++ b/packages/mindplot/test/unit/export/expected/welcome.txt @@ -1,13 +1,13 @@ 1 Welcome To WiseMapping 1.1 5 min tutorial video ? -Follow the link ! +Follow the link ! [link: https://www.youtube.com/tv?vq=medium#/watch?v=rKxZwNKs9cE] 1.2 Try it Now! 1.2.1 Double Click 1.2.2 Press "enter" to add a Sibling 1.2.3 Drag map to move 1.3 Features -1.3.1 Links to Sites +1.3.1 Links to Sites [link: http://www.digg.com] 1.3.2 Styles 1.3.2.1 Fonts 1.3.2.2 Topic Shapes @@ -24,8 +24,8 @@ Sibling 1.5.2 Brainstorming 1.5.3 Visual 1.6 Install In Your Server -1.6.1 Open Source -1.6.2 Download +1.6.1 Open Source [link: http://www.wisemapping.org/] +1.6.2 Download [link: http://www.wisemapping.com/inyourserver.html] 1.7 Collaborate 1.7.1 Embed 1.7.2 Publish