test(HtmlLexer): Add test for "{" and "{{" escaping
This commit is contained in:
parent
60e6f91a53
commit
6c86e8d80a
|
@ -507,6 +507,22 @@ export function main() {
|
|||
[HtmlTokenType.EOF],
|
||||
]);
|
||||
});
|
||||
|
||||
it('should be able to escape {', () => {
|
||||
expect(tokenizeAndHumanizeParts('{{ "{" }}')).toEqual([
|
||||
[HtmlTokenType.TEXT, '{{ "{" }}'],
|
||||
[HtmlTokenType.EOF],
|
||||
]);
|
||||
});
|
||||
|
||||
it('should be able to escape {{', () => {
|
||||
expect(tokenizeAndHumanizeParts('{{ "{{" }}')).toEqual([
|
||||
[HtmlTokenType.TEXT, '{{ "{{" }}'],
|
||||
[HtmlTokenType.EOF],
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
describe('raw text', () => {
|
||||
|
|
Loading…
Reference in New Issue