Add test for $tags

This commit is contained in:
Daniel Bartholomae 2022-08-24 23:38:55 +02:00
parent 5378316cc3
commit 90d472042b
No known key found for this signature in database
GPG Key ID: 782CE028698BEE8C
1 changed files with 13 additions and 0 deletions

View File

@ -64,4 +64,17 @@ Person(customerA, $link="https://github.com/mermaidjs")`);
},
});
});
it('should parse tags', function () {
c4.parser.parse(`C4Context
Person(customerA, $tags="tag1,tag2")`);
expect(c4.parser.yy.getC4ShapeArray()[0]).toMatchObject({
label: {
text: {
tags: 'tag1,tag2',
},
},
});
});
});