test(common): fix ngIf tests
The failing test was ported for the master branch which ignores whitespaces
This commit is contained in:
parent
cdfedc1e49
commit
bf07837d5d
@ -163,4 +163,3 @@ export class NgIfContext {
|
|||||||
public $implicit: any = null;
|
public $implicit: any = null;
|
||||||
public ngIf: any = null;
|
public ngIf: any = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,8 +172,8 @@ import {expect} from '@angular/platform-browser/testing/src/matchers';
|
|||||||
it('should support removing the then/else templates', () => {
|
it('should support removing the then/else templates', () => {
|
||||||
const template = `<span *ngIf="booleanCondition;
|
const template = `<span *ngIf="booleanCondition;
|
||||||
then nestedBooleanCondition ? tplRef : null;
|
then nestedBooleanCondition ? tplRef : null;
|
||||||
else nestedBooleanCondition ? tplRef : null"></span>
|
else nestedBooleanCondition ? tplRef : null"></span>` +
|
||||||
<ng-template #tplRef>Template</ng-template>`;
|
`<ng-template #tplRef>Template</ng-template>`;
|
||||||
|
|
||||||
fixture = createTestComponent(template);
|
fixture = createTestComponent(template);
|
||||||
const comp = fixture.componentInstance;
|
const comp = fixture.componentInstance;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user