diff --git a/modules/@angular/compiler/test/html_lexer_spec.ts b/modules/@angular/compiler/test/html_lexer_spec.ts index c6da634504..d8429dcfb6 100644 --- a/modules/@angular/compiler/test/html_lexer_spec.ts +++ b/modules/@angular/compiler/test/html_lexer_spec.ts @@ -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', () => {