diff --git a/packages/@glimmer/compiler/test/compiler-test.ts b/packages/@glimmer/compiler/test/compiler-test.ts index cbafc5a93..8d1315af5 100644 --- a/packages/@glimmer/compiler/test/compiler-test.ts +++ b/packages/@glimmer/compiler/test/compiler-test.ts @@ -58,6 +58,19 @@ QUnit.test( } ); +QUnit.test( + 'invalid html attribute throws syntax error', + (assert) => { + const template = strip` + Link + `; + assert.throws( + () => compile(template), + /"\*" is not a valid attribute name/u + ); + } +); + test('HTML text content', 'content', s`content`); test('Text curlies', '