@@ -30,7 +30,7 @@ export function main() {
3030 describe ( "asyncGet" , function ( ) {
3131 it ( 'should return a future' , function ( ) {
3232 var injector = new Injector ( [
33- bind ( UserList ) . toAsyncFactory ( [ ] , fetchUsers )
33+ bind ( UserList ) . toAsyncFactory ( fetchUsers )
3434 ] ) ;
3535 var p = injector . asyncGet ( UserList ) ;
3636 expect ( p ) . toBeFuture ( ) ;
@@ -64,7 +64,7 @@ export function main() {
6464 it ( 'should return a future when instantiating a sync binding ' +
6565 'with an async dependency' , function ( done ) {
6666 var injector = new Injector ( [
67- bind ( UserList ) . toAsyncFactory ( [ ] , fetchUsers ) ,
67+ bind ( UserList ) . toAsyncFactory ( fetchUsers ) ,
6868 UserController
6969 ] ) ;
7070
@@ -77,7 +77,7 @@ export function main() {
7777
7878 it ( "should create only one instance (async + async)" , function ( done ) {
7979 var injector = new Injector ( [
80- bind ( UserList ) . toAsyncFactory ( [ ] , fetchUsers )
80+ bind ( UserList ) . toAsyncFactory ( fetchUsers )
8181 ] ) ;
8282
8383 var ul1 = injector . asyncGet ( UserList ) ;
@@ -109,7 +109,7 @@ export function main() {
109109 it ( 'should show the full path when error happens in a constructor' , function ( done ) {
110110 var injector = new Injector ( [
111111 UserController ,
112- bind ( UserList ) . toAsyncFactory ( [ ] , function ( ) {
112+ bind ( UserList ) . toAsyncFactory ( function ( ) {
113113 throw "Broken UserList" ;
114114 } )
115115 ] ) ;
@@ -125,7 +125,7 @@ export function main() {
125125 describe ( "get" , function ( ) {
126126 it ( 'should throw when instantiating an async binding' , function ( ) {
127127 var injector = new Injector ( [
128- bind ( UserList ) . toAsyncFactory ( [ ] , fetchUsers )
128+ bind ( UserList ) . toAsyncFactory ( fetchUsers )
129129 ] ) ;
130130
131131 expect ( ( ) => injector . get ( UserList ) )
@@ -134,7 +134,7 @@ export function main() {
134134
135135 it ( 'should throw when instantiating a sync binding with an dependency' , function ( ) {
136136 var injector = new Injector ( [
137- bind ( UserList ) . toAsyncFactory ( [ ] , fetchUsers ) ,
137+ bind ( UserList ) . toAsyncFactory ( fetchUsers ) ,
138138 UserController
139139 ] ) ;
140140
@@ -144,7 +144,7 @@ export function main() {
144144
145145 it ( 'should resolve synchronously when an async dependency requested as a future' , function ( ) {
146146 var injector = new Injector ( [
147- bind ( UserList ) . toAsyncFactory ( [ ] , fetchUsers ) ,
147+ bind ( UserList ) . toAsyncFactory ( fetchUsers ) ,
148148 AsyncUserController
149149 ] ) ;
150150 var controller = injector . get ( AsyncUserController ) ;
@@ -155,7 +155,7 @@ export function main() {
155155
156156 it ( 'should wrap sync dependencies into futures if required' , function ( ) {
157157 var injector = new Injector ( [
158- bind ( UserList ) . toFactory ( [ ] , ( ) => new UserList ( ) ) ,
158+ bind ( UserList ) . toFactory ( ( ) => new UserList ( ) ) ,
159159 AsyncUserController
160160 ] ) ;
161161 var controller = injector . get ( AsyncUserController ) ;
0 commit comments