mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
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,
|
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…
x
Reference in New Issue
Block a user