Updated test for the inject function

Updated the test for the inject function to assign it to a variable typed to ng.IPromise<any> to test/verify that method's return type.
This commit is contained in:
Steve Mayes
2016-02-28 14:22:16 -05:00
parent 275ebfe649
commit 5c6d875672
+2 -2
View File
@@ -89,7 +89,7 @@ angular.module('app').controller(['$ocLazyLoadProvider', function ($ocLazyLoad:
'testModule2.js'
]);
$ocLazyLoad.inject('testModule');
var promise: ng.IPromise<any> = $ocLazyLoad.inject('testModule');
$ocLazyLoad.toggleWatch(true);
}]);
}]);