test(language-service): Move completions test to completions_spec.ts (#33159)

There are many specs in `ts_plugin_spec.ts` that exercise the behavior
of completions. These specs should belong in `completions_spec` instead.

In addition,

1. Tests for `getExternalFiles()` added in `ts_plugin_spec.ts`
2. Fixed bug in MockHost.reset() to remove overriden script names
3. Add test for TS diagnostics when `angularOnly = true` is not set

PR Close #33159
This commit is contained in:
Keen Yee Liau
2019-10-14 15:24:28 -07:00
committed by Matias Niemelä
parent 51b9ce44ea
commit 67c914819a
4 changed files with 464 additions and 348 deletions

View File

@ -143,10 +143,18 @@ export class ForUsingComponent {
<div *ngFor="let person of people | async">
{{person.~{async-person-name}name}}
</div>
<div *ngIf="promisedPerson | async as person">
{{person.~{promised-person-name}name}}
</div>
`,
})
export class AsyncForUsingComponent {
people: Promise<Person[]> = Promise.resolve([]);
promisedPerson: Promise<Person> = Promise.resolve({
name: 'John Doe',
age: 42,
street: '123 Angular Ln',
});
}
@Component({