plantuml
Version:
Convert PlantUML diagram text to SVG
23 lines (21 loc) • 576 B
JavaScript
const plantuml = require('..');
describe('plantuml', () => {
it('Convert PlantUML to SVG', async () => {
const svg = await plantuml(`
Bob -> Alice : hello
Alice -> Wonderland: hello
Wonderland -> next: hello
next -> Last: hello
Last -> next: hello
next -> Wonderland : hello
Wonderland -> Alice : hello
Alice -> Bob: hello
`);
expect(svg).toContain('<svg ');
expect(svg).toContain('</svg>');
expect(svg).not.toContain('<!--');
expect(svg).not.toContain('-->');
});
});