Add test for link to Person_Ext

This commit is contained in:
Daniel Bartholomae 2022-08-27 15:34:20 +02:00
parent a196aeb29b
commit db0d6075ca
No known key found for this signature in database
GPG Key ID: 782CE028698BEE8C
1 changed files with 13 additions and 0 deletions

View File

@ -43,4 +43,17 @@ Person_Ext(customerA, "Banking Customer A", "A customer of the bank, with person
wrap: false,
});
});
it('should parse a link', function () {
c4.parser.parse(`C4Context
Person_Ext(customerA, $link="https://github.com/mermaidjs")`);
expect(c4.parser.yy.getC4ShapeArray()[0]).toMatchObject({
label: {
text: {
link: 'https://github.com/mermaidjs',
},
},
});
});
});