mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-06 00:56:42 +02:00
fixed unit test
This commit is contained in:
@@ -449,6 +449,13 @@ describe('state diagram V2, ', function () {
|
|||||||
click StateA "https://example.com" "Go to Example"
|
click StateA "https://example.com" "Go to Example"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
stateDb.clear();
|
||||||
|
|
||||||
|
parser.yy = {
|
||||||
|
...stateDb,
|
||||||
|
addLink: stateDb.addLink.bind(stateDb),
|
||||||
|
};
|
||||||
|
|
||||||
parser.parse(diagram);
|
parser.parse(diagram);
|
||||||
|
|
||||||
const links = stateDb.getLinks();
|
const links = stateDb.getLinks();
|
||||||
|
Reference in New Issue
Block a user