Skip to content

Commit

Permalink
style(core): typos in docs and tests (angular#32410)
Browse files Browse the repository at this point in the history
PR angular#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 angular#32410
  • Loading branch information
cexbrayat authored and arnehoek committed Sep 26, 2019
1 parent 21871d1 commit 86421d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/di/injectable.ts
Expand Up @@ -70,7 +70,7 @@ export interface Injectable {
* - '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
* 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)
*/
providedIn?: Type<any>|'root'|'platform'|'any'|null;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/view/ng_module_spec.ts
Expand Up @@ -286,7 +286,7 @@ describe('NgModuleRef_ injector', () => {
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)]);
expect(def.scope).toBe(null);
});
Expand Down

0 comments on commit 86421d1

Please sign in to comment.