Add test for $sprite

This commit is contained in:
Daniel Bartholomae 2022-08-24 23:31:52 +02:00
parent aee1a87347
commit 8ee534f7fb
No known key found for this signature in database
GPG Key ID: 782CE028698BEE8C
1 changed files with 13 additions and 0 deletions

View File

@ -38,4 +38,17 @@ Person(customerA, "Banking Customer A", "A customer of the bank, with personal b
wrap: false,
});
});
it('should parse a sprite', function () {
c4.parser.parse(`C4Context
Person(customerA, $sprite="users")`);
expect(c4.parser.yy.getC4ShapeArray()[0]).toMatchObject({
label: {
text: {
sprite: 'users',
},
},
});
});
});