style(core): typos in docs and tests (#32410)
PR #32154 introduced `platform` and `any` for `providedIn` and the doc has a minor typo. Also a test name was not changed accordingly to the refactoring done. PR Close #32410
This commit is contained in:
parent
01e0f58dd6
commit
bdbf0c94b1
|
@ -70,7 +70,7 @@ export interface Injectable {
|
||||||
* - 'root' injector, which will be the application-level injector in most apps.
|
* - 'root' injector, which will be the application-level injector in most apps.
|
||||||
* - 'platform' injector, which would be the special singleton platform injector shared by all
|
* - 'platform' injector, which would be the special singleton platform injector shared by all
|
||||||
* applications on the page.
|
* applications on the page.
|
||||||
* - 'any` injector, which would be the injector which receives the resolution. (Note this only
|
* - 'any' injector, which would be the injector which receives the resolution. (Note this only
|
||||||
* works on NgModule Injectors and not on Element Injector)
|
* works on NgModule Injectors and not on Element Injector)
|
||||||
*/
|
*/
|
||||||
providedIn?: Type<any>|'root'|'platform'|'any'|null;
|
providedIn?: Type<any>|'root'|'platform'|'any'|null;
|
||||||
|
|
|
@ -286,7 +286,7 @@ describe('NgModuleRef_ injector', () => {
|
||||||
expect(def.scope).toBe(null);
|
expect(def.scope).toBe(null);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('sets isRoot to `null` when INJECTOR_SCOPE is `null`', () => {
|
it('sets scope to `null` when INJECTOR_SCOPE is `null`', () => {
|
||||||
const def = moduleDef([createProvider(INJECTOR_SCOPE, null)]);
|
const def = moduleDef([createProvider(INJECTOR_SCOPE, null)]);
|
||||||
expect(def.scope).toBe(null);
|
expect(def.scope).toBe(null);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue