From bf07837d5dd9112d9a9fda06d4d45d65bdf99ca3 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Sun, 18 Feb 2018 20:12:47 -0800 Subject: [PATCH] test(common): fix ngIf tests The failing test was ported for the master branch which ignores whitespaces --- packages/common/src/directives/ng_if.ts | 1 - packages/common/test/directives/ng_if_spec.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/common/src/directives/ng_if.ts b/packages/common/src/directives/ng_if.ts index 7a2487d83a0..e9193cf6daf 100644 --- a/packages/common/src/directives/ng_if.ts +++ b/packages/common/src/directives/ng_if.ts @@ -163,4 +163,3 @@ export class NgIfContext { public $implicit: any = null; public ngIf: any = null; } - diff --git a/packages/common/test/directives/ng_if_spec.ts b/packages/common/test/directives/ng_if_spec.ts index ef68dd34655..69087bb12fb 100644 --- a/packages/common/test/directives/ng_if_spec.ts +++ b/packages/common/test/directives/ng_if_spec.ts @@ -172,8 +172,8 @@ import {expect} from '@angular/platform-browser/testing/src/matchers'; it('should support removing the then/else templates', () => { const template = ` - Template`; + else nestedBooleanCondition ? tplRef : null">` + + `Template`; fixture = createTestComponent(template); const comp = fixture.componentInstance;