File tree 2 files changed +6
-6
lines changed
packages/@ember/-internals/container
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export default class Container {
145
145
*/
146
146
lookup ( fullName : string , options : LookupOptions ) : any {
147
147
if ( this . isDestroyed ) {
148
- throw new Error ( `Can not call \`.lookup\` after the owner has been destroyed` ) ;
148
+ throw new Error ( `Cannot call \`.lookup\` after the owner has been destroyed` ) ;
149
149
}
150
150
assert ( 'fullName must be a proper full name' , this . registry . isValidFullName ( fullName ) ) ;
151
151
return lookup ( this , this . registry . normalize ( fullName ) , options ) ;
@@ -212,7 +212,7 @@ export default class Container {
212
212
*/
213
213
factoryFor < T , C > ( fullName : string ) : Factory < T , C > | undefined {
214
214
if ( this . isDestroyed ) {
215
- throw new Error ( `Can not call \`.factoryFor\` after the owner has been destroyed` ) ;
215
+ throw new Error ( `Cannot call \`.factoryFor\` after the owner has been destroyed` ) ;
216
216
}
217
217
let normalizedName = this . registry . normalize ( fullName ) ;
218
218
@@ -500,7 +500,7 @@ export class FactoryManager<T, C> {
500
500
501
501
if ( container . isDestroyed ) {
502
502
throw new Error (
503
- `Can not create new instances after the owner has been destroyed (you attempted to create ${ this . fullName } )`
503
+ `Cannot create new instances after the owner has been destroyed (you attempted to create ${ this . fullName } )`
504
504
) ;
505
505
}
506
506
Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ moduleFor(
608
608
609
609
assert . throws ( ( ) => {
610
610
container . lookup ( 'service:foo' ) ;
611
- } , / C a n n o t c a l l ` .l o o k u p ` a f t e r t h e o w n e r h a s b e e n d e s t r o y e d / ) ;
611
+ } , / C a n n o t c a l l ` .l o o k u p ` a f t e r t h e o w n e r h a s b e e n d e s t r o y e d / ) ;
612
612
}
613
613
614
614
[ `@test assert when calling factoryFor after destroy on a container` ] ( assert ) {
@@ -626,7 +626,7 @@ moduleFor(
626
626
627
627
assert . throws ( ( ) => {
628
628
container . factoryFor ( 'service:foo' ) ;
629
- } , / C a n n o t c a l l ` .f a c t o r y F o r ` a f t e r t h e o w n e r h a s b e e n d e s t r o y e d / ) ;
629
+ } , / C a n n o t c a l l ` .f a c t o r y F o r ` a f t e r t h e o w n e r h a s b e e n d e s t r o y e d / ) ;
630
630
}
631
631
632
632
// this is skipped until templates and the glimmer environment do not require `OWNER` to be
@@ -690,7 +690,7 @@ moduleFor(
690
690
691
691
assert . throws ( ( ) => {
692
692
Factory . create ( ) ;
693
- } , / C a n n o t c r e a t e n e w i n s t a n c e s a f t e r t h e o w n e r h a s b e e n d e s t r o y e d \( y o u a t t e m p t e d t o c r e a t e s e r v i c e : o t h e r \) / ) ;
693
+ } , / C a n n o t c r e a t e n e w i n s t a n c e s a f t e r t h e o w n e r h a s b e e n d e s t r o y e d \( y o u a t t e m p t e d t o c r e a t e s e r v i c e : o t h e r \) / ) ;
694
694
}
695
695
}
696
696
) ;
You can’t perform that action at this time.
0 commit comments