Added overload to angular.mock.inject function to allow array-style dependency injection, which the function supports. Added test excercising the overload.

This commit is contained in:
Jeremy Bell
2014-05-23 17:47:07 -04:00
parent 36febf66ea
commit 9e30ccf2e5
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ declare module ng {
// see http://docs.angularjs.org/api/angular.mock.inject
inject(...fns: Function[]): any;
inject(...inlineAnnotatedConstructor: any[]): any; // this overload is undocumented, but works
// see http://docs.angularjs.org/api/angular.mock.module
module(...modules: string[]): any;