mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +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"
|
||||
`;
|
||||
|
||||
stateDb.clear();
|
||||
|
||||
parser.yy = {
|
||||
...stateDb,
|
||||
addLink: stateDb.addLink.bind(stateDb),
|
||||
};
|
||||
|
||||
parser.parse(diagram);
|
||||
|
||||
const links = stateDb.getLinks();
|
||||
|
Reference in New Issue
Block a user