mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 13:59:54 +02:00
add test
This commit is contained in:
@@ -83,4 +83,14 @@ Expecting 'TXT', got 'NEWLINE'"
|
||||
expect(messages[0].message).toBe('I fl°°9829¶ß you!');
|
||||
expect(messages[1].message).toBe('I fl°°9829¶ß you fl°infin¶ß times more!');
|
||||
});
|
||||
|
||||
test('should clean up comments when present in diagram defination', async () => {
|
||||
const diagram = await getDiagramFromText(
|
||||
`flowchart LR
|
||||
%% this is a comment A -- text --> B{node}
|
||||
A -- text --> B -- text2 --> C`
|
||||
);
|
||||
expect(diagram).toBeInstanceOf(Diagram);
|
||||
expect(diagram.type).toBe('flowchart-v2');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user