Added resolve method to angular.IQService.

This commit is contained in:
Marco Gonzalez committed 2015-09-28 21:00:52 -06:00
1 parent ffceea9dd1
commit fe917d27e9
2 files changed
+20 -1

No files matched your search

+11
View File
@@ -296,6 +296,17 @@ module TestQ {
result = $q.reject('');
}
// $q.resolve
{
let result: angular.IPromise<void>;
result = $q.resolve();
}
{
let result: angular.IPromise<TResult>;
result = $q.resolve<TResult>(tResult);
result = $q.resolve<TResult>(promiseTResult);
}
// $q.when
{
let result: angular.IPromise<void>;