UNPKG

@argdown/node

Version:

Async Argdown application for node.js

31 lines (29 loc) 740 B
import { expect } from "chai"; import { describe, it } from "mocha"; import { argdown } from "../src/index"; import { IArgdownRequest } from "@argdown/core"; describe("DotToSvgExportPlugin", () => { it("can generate svg from dot (sanity test)", async () => { const input = ` [B]: test <A>: test - [B] + <C>: test `; const request: IArgdownRequest = { input, process: [ "parse-input", "build-model", "build-map", "colorize", "export-dot", "export-svg" ], logLevel: "error" }; const response = await argdown.runAsync(request); console.log(response.dot); expect(response.svg).to.exist; }); });