mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
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:
@@ -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);
|
||||
}]);
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user