diff --git a/packages/core/schematics/test/template_var_assignment_migration_spec.ts b/packages/core/schematics/test/template_var_assignment_migration_spec.ts index 2b56dd5c41..c3bac52433 100644 --- a/packages/core/schematics/test/template_var_assignment_migration_spec.ts +++ b/packages/core/schematics/test/template_var_assignment_migration_spec.ts @@ -161,6 +161,24 @@ describe('template variable assignment migration', () => { expect(warnOutput.length).toBe(0); }); + + it('should not warn for bound event assignments to template variable object property', () => { + writeFile('/index.ts', ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './sub_dir/tmpl.html', + }) + export class MyComp {} + `); + + writeFile('/sub_dir/tmpl.html', ` + + `); + + runMigration(); + + expect(warnOutput.length).toBe(0); }); it('should not throw an error if a detected template fails parsing', () => {