fix(compiler): narrow the span reported for invalid pipes

fixes #13326
closes #13411
This commit is contained in:
Chuck Jazdzewski
2016-12-12 15:59:12 -08:00
committed by Victor Berchet
parent 3a64ad895a
commit 2b90cd532f
5 changed files with 54 additions and 6 deletions

View File

@ -1839,7 +1839,7 @@ Property binding a not used by any directive on an embedded template. Make sure
it('should report pipes as error that have not been defined as dependencies', () => {
expect(() => parse('{{a | test}}', [])).toThrowError(`Template parse errors:
The pipe 'test' could not be found ("[ERROR ->]{{a | test}}"): TestComp@0:0`);
The pipe 'test' could not be found ("{{[ERROR ->]a | test}}"): TestComp@0:2`);
});
});