Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit deba772

Browse files
committed
chore(*): fix typos
1 parent d9c0f03 commit deba772

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/injector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Injector {
5252

5353

5454
// Collect all registered providers that has given annotation.
55-
// Inclugind providers defined in parent injectors.
55+
// Including providers defined in parent injectors.
5656
_collectProvidersWithAnnotation(annotationClass, collectedProviders) {
5757
this._providers.forEach((provider, token) => {
5858
if (!collectedProviders.has(token) && hasAnnotation(provider.provider, annotationClass)) {
@@ -94,7 +94,7 @@ class Injector {
9494

9595

9696
// Returns true if there is any provider registered for given token.
97-
// Inclugind parent injectors.
97+
// Including parent injectors.
9898
_hasProviderFor(token) {
9999
if (this._providers.has(token)) {
100100
return true;
@@ -196,7 +196,7 @@ class Injector {
196196

197197
provider = this._providers.get(token);
198198

199-
// No provider defined (overriden), use the default provider (token).
199+
// No provider defined (overridden), use the default provider (token).
200200
if (!provider && isFunction(token) && !this._hasProviderFor(token)) {
201201
provider = createProviderFromFnOrClass(token, readAnnotations(token));
202202
return this._instantiateDefaultProvider(provider, token, resolving, wantPromise, wantLazy);

src/providers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ClassProvider {
4040
}
4141

4242
// Normalize params for all the constructors (in the case of inheritance),
43-
// into a single flat array of DependencyDesriptors.
43+
// into a single flat array of DependencyDescriptors.
4444
// So that the injector does not have to worry about inheritance.
4545
//
4646
// This function mutates `this.params` and `this._constructors`,

src/testing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function inject(...params) {
7575
return providerWrapper.provider;
7676
}, {provide: {token: null, isPromise: false}, params: []}));
7777
} else {
78-
// a fn/class provider with overriden token
78+
// a fn/class provider with overridden token
7979
annotations = readAnnotations(providerWrapper.provider);
8080
providers.set(providerWrapper.as, createProviderFromFnOrClass(providerWrapper.provider, annotations));
8181
}

test/async.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('async', function() {
119119
});
120120

121121

122-
it('should allow aync dependency in a parent constructor', function(done) {
122+
it('should allow async dependency in a parent constructor', function(done) {
123123
class ChildUserController extends UserController {}
124124

125125
var injector = new Injector([fetchUsers]);

test/injector.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ describe('injector', function() {
473473
});
474474

475475

476-
it('should force new instances by annotation using overriden provider', function() {
476+
it('should force new instances by annotation using overridden provider', function() {
477477
class RouteScope {}
478478

479479
class Engine {
@@ -499,7 +499,7 @@ describe('injector', function() {
499499
});
500500

501501

502-
it('should force new instance by annotation using the lowest overriden provider', function() {
502+
it('should force new instance by annotation using the lowest overridden provider', function() {
503503
class RouteScope {}
504504

505505
@RouteScope

0 commit comments

Comments
 (0)