Add test for alias

This commit is contained in:
Daniel Bartholomae 2022-08-24 23:47:41 +02:00
parent 6f7ae17fc6
commit 3bc5cfa554
No known key found for this signature in database
GPG Key ID: 782CE028698BEE8C
1 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,15 @@ Person(customerA, "Banking Customer A", "A customer of the bank, with personal b
});
});
it('should parse the alias', function () {
c4.parser.parse(`C4Context
Person(customerA, "Banking Customer A")`);
expect(c4.parser.yy.getC4ShapeArray()[0]).toMatchObject({
alias: 'customerA',
});
});
it('should parse the label', function () {
c4.parser.parse(`C4Context
Person(customerA, "Banking Customer A")`);