File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import 'reflect-metadata' ;
2
2
import { Container } from '../../src/Container' ;
3
3
import { Service } from '../../src/decorators/Service' ;
4
+ import { Token } from '../../src/Token' ;
4
5
5
6
describe ( 'Service Decorator' , function ( ) {
6
7
beforeEach ( ( ) => Container . reset ( ) ) ;
@@ -160,7 +161,7 @@ describe('Service Decorator', function () {
160
161
expect ( globalContainer . get ( Engine ) . name ) . toBe ( 'regular' ) ;
161
162
expect ( scopedContainer . get ( Engine ) . name ) . toBe ( 'sporty' ) ;
162
163
} ) ;
163
-
164
+
164
165
it ( 'should support function injection with Token dependencies' , function ( ) {
165
166
const token : Token < string > = new Token < string > ( 'token' ) ;
166
167
@@ -170,6 +171,6 @@ describe('Service Decorator', function () {
170
171
return s . toUpperCase ( ) ;
171
172
} ) ;
172
173
173
- Container . get ( TestService ) . should . be . equal ( 'TEST_STRING' ) ;
174
+ expect ( Container . get ( TestService ) ) . toBe ( 'TEST_STRING' ) ;
174
175
} ) ;
175
176
} ) ;
You can’t perform that action at this time.
0 commit comments