fixed unit test

This commit is contained in:
khalil
2025-04-05 21:30:03 +01:00
parent aa6cb86899
commit 2d9034c983

View File

@@ -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();