angular-docs-cn/aio/src
Sonu Kapoor 175c79d1d8 test(docs-infra): remove deprecated `ReflectiveInjector` (#38408)
This commit replaces the old and slow `ReflectiveInjector` that was
deprecated in v5 with the new `Injector`. Note: This change was only
done in the spec files inside the `aio` folder.

While changing this, it was not possible to directly use `Injector.get`
to get the correct typing for the mocked classes. For example:

```typescript
locationService = injector.get<TestLocationService>(LocationService);
```

Fails with:

> Argument of type 'typeof LocationService' is not assignable to parameter
of type 'Type<TestLocationService> | InjectionToken<TestLocationService> |
AbstractType<TestLocationService>'.
  Type 'typeof LocationService' is not assignable to type 'Type<TestLocationService>'.
    Property 'searchResult' is missing in type 'LocationService' but required in type
    'TestLocationService'.

Therefore, it was necessary to first convert to `unknown` and then to
`TestLocationService`.

```typescript
locationService = injector.get(LocationService) as unknown as TestLocationService;
```

PR Close #38408
2020-08-13 12:56:13 -07:00
..
app test(docs-infra): remove deprecated `ReflectiveInjector` (#38408) 2020-08-13 12:56:13 -07:00
assets fix(docs-infra): fix logo to have branded red color (#31663) 2019-07-22 09:54:00 -07:00
environments build(docs-infra): remove obsolete `ie-polyfills.js` (#29926) 2019-04-25 12:32:49 -07:00
extra-files build(aio): generate sitemap from the generated pages (#21689) 2018-01-22 12:55:15 -08:00
styles fix(docs-infra): correctly display copy button in IE11 (#38186) 2020-07-23 11:07:28 -07:00
testing build(docs-infra): enable more TypeScript strictness flags (#32980) 2019-10-10 13:56:14 -07:00
404-body.html build: bump year (#34651) 2020-01-13 07:21:43 -08:00
google385281288605d160.html build(aio): add google webmaster tools verification file 2017-05-26 01:25:58 -07:00
index.html fix(docs-infra): preconnect to analytics origins (#37400) 2020-06-10 11:51:43 -07:00
main.ts feat(docs-infra): Convert AIO to use the new Service Worker 5.0.0. (#19795) 2018-08-27 16:30:42 -04:00
noop-worker-basic.js feat(aio): provide noop service worker file 2017-05-26 14:24:41 +01:00
polyfills.ts build(docs-infra): update @angular/cli to 10.0.0-next.3 (#36145) 2020-05-05 11:50:29 -07:00
pwa-manifest.json fix(docs-infra): update manifest short_name (#30194) 2019-11-22 13:20:47 -05:00
test.ts test(docs-infra): remove reflect-metadata polyfill from aio tests (#27130) 2018-11-16 12:17:44 -08:00