test(language-service): Remove unused code in test project (#37122)

This commit removes the `bootstrap()` function in the test project since
its presence has no effect on the behavior of language service.

Also removes the explicit cast when instantiating `CounterDirectiveContext`,
and let type inference takes care of that.

PR Close #37122
This commit is contained in:
Keen Yee Liau 2020-05-14 16:05:20 -07:00 committed by Kara Erickson
parent 009f394237
commit a73d2a7688
2 changed files with 1 additions and 5 deletions

View File

@ -27,7 +27,3 @@ import * as ParsingCases from './parsing-cases';
}) })
export class AppModule { export class AppModule {
} }
declare function bootstrap(v: any): void;
bootstrap(AppComponent);

View File

@ -49,7 +49,7 @@ export class CounterDirective implements OnChanges {
ngOnChanges(_changes: SimpleChanges) { ngOnChanges(_changes: SimpleChanges) {
this.container.clear(); this.container.clear();
for (let i = 0; i < this.counter; ++i) { for (let i = 0; i < this.counter; ++i) {
this.container.createEmbeddedView(this.template, new CounterDirectiveContext<number>(i + 1)); this.container.createEmbeddedView(this.template, new CounterDirectiveContext(i + 1));
} }
} }
} }