Add test for handling trailing whitespaces

This commit is contained in:
Daniel Bartholomae 2022-08-23 16:01:39 +02:00
parent 0c8f7163db
commit d97ce7eab8
1 changed files with 9 additions and 0 deletions

View File

@ -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);
});
});