Add test for $tags

This commit is contained in:
Daniel Bartholomae
2022-08-24 23:38:55 +02:00
parent 5378316cc3
commit 90d472042b

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',
},
},
});
});
});