test(common): fix ngIf tests

The failing test was ported for the master branch which ignores whitespaces
This commit is contained in:
Victor Berchet 2018-02-18 20:12:47 -08:00
parent cdfedc1e49
commit bf07837d5d
2 changed files with 2 additions and 3 deletions

View File

@ -163,4 +163,3 @@ export class NgIfContext {
public $implicit: any = null;
public ngIf: any = null;
}

View File

@ -172,8 +172,8 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
it('should support removing the then/else templates', () => {
const template = `<span *ngIf="booleanCondition;
then nestedBooleanCondition ? tplRef : null;
else nestedBooleanCondition ? tplRef : null"></span>
<ng-template #tplRef>Template</ng-template>`;
else nestedBooleanCondition ? tplRef : null"></span>` +
`<ng-template #tplRef>Template</ng-template>`;
fixture = createTestComponent(template);
const comp = fixture.componentInstance;