UNPKG

ngrx-uml

Version:
27 lines (24 loc) 859 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const plant_uml_output_service_1 = require("../impl/outputs/plant-uml-output.service"); function testPlantServer(outDir = 'out') { const plantUmlService = new plant_uml_output_service_1.PlantUmlOutputService({ outDir, ext: 'txt', clickableLinks: true, saveWsd: true, generateDiagramsImages: true }); const diagram = ` interface "[Auth/API] Login Failure" << (A,#FF7700) action >> { variable: loginFailure src: auth-api.actions .. props<{ \\terror: any, \\tbooks: Books[], }> createFunction: arrow } `; plantUmlService.transformFromString('test-plant', diagram); } exports.default = testPlantServer; // class Car // Driver - Car : drives > // Car *- Wheel : have 4 > // Car -- Person : < owns