Add test for handling trailing whitespaces
This commit is contained in:
parent
0c8f7163db
commit
d97ce7eab8
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue