docs: edit $any() section and add example in Template Syntax (#28157)

PR Close #28157
This commit is contained in:
Kapunahele Wong
2019-01-14 13:56:28 -05:00
committed by Matias Niemelä
parent a9020a028f
commit c0ad9e104d
12 changed files with 135 additions and 26 deletions

View File

@ -13,15 +13,4 @@ describe('AppComponent', () => {
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
it(`should have as title 'Featured product:'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('Featured product:');
}));
it('should render title in a p tag', async(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('p').textContent).toContain('Featured product:');
}));
});