From ae3eaf8b1682a005b237a44c927418176c5e42dc Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Fri, 20 Mar 2020 11:16:36 -0700 Subject: [PATCH] test(compiler): remove whitespace in spans (#36169) https://github.com/angular/angular/pull/36133 and https://github.com/angular/angular/pull/35986 caused a conflict in test after they both got merged to master. This PR fixes the failed tests. PR Close #36169 --- packages/compiler/test/render3/r3_ast_spans_spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler/test/render3/r3_ast_spans_spec.ts b/packages/compiler/test/render3/r3_ast_spans_spec.ts index c4553a5a9d..e8e6931c49 100644 --- a/packages/compiler/test/render3/r3_ast_spans_spec.ts +++ b/packages/compiler/test/render3/r3_ast_spans_spec.ts @@ -245,7 +245,7 @@ describe('R3 AST source spans', () => { // expectFromHtml('
').toEqual([ ['Template', '0:28', '0:28', '28:34'], - ['BoundAttribute', '5:27', '13:18'], // ngFor="item of items" -> item + ['BoundAttribute', '5:27', '13:17'], // ngFor="item of items" -> item ['BoundAttribute', '5:27', '21:26'], // ngFor="item of items" -> items ['Element', '0:34', '0:28', '28:34'], ]); @@ -263,7 +263,7 @@ describe('R3 AST source spans', () => { it('is correct for variables via as ...', () => { expectFromHtml('
').toEqual([ ['Template', '0:27', '0:27', '27:33'], - ['BoundAttribute', '5:26', '12:17'], // ngIf="expr as local" -> expr + ['BoundAttribute', '5:26', '12:16'], // ngIf="expr as local" -> expr ['Variable', '6:25', '6:10'], // ngIf="expr as local -> ngIf ['Element', '0:33', '0:27', '27:33'], ]);