diff --git a/src/diagrams/c4/parser/flow.spec.js b/src/diagrams/c4/parser/flow.spec.js index 8d76efd9f..3d2bb97df 100644 --- a/src/diagrams/c4/parser/flow.spec.js +++ b/src/diagrams/c4/parser/flow.spec.js @@ -40,4 +40,13 @@ Person(customerA, "Banking Customer A", "A customer of the bank, with personal b wrap: false, }); }); + + it('should handle a trailing whitespaces after statements', function () { + const whitespace = ' '; + const rendered = flow.parser.parse(`C4Context${whitespace} +title System Context diagram for Internet Banking System${whitespace} +Person(customerA, "Banking Customer A", "A customer of the bank, with personal bank accounts.")${whitespace}`); + + expect(rendered).toBe(true); + }); });