aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/qSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/qSpec.js')
-rw-r--r--test/ng/qSpec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ng/qSpec.js b/test/ng/qSpec.js
index 73579137..b12a4a8f 100644
--- a/test/ng/qSpec.js
+++ b/test/ng/qSpec.js
@@ -959,6 +959,13 @@ describe('q', function() {
mockNextTick.flush();
expect(log).toEqual(['errorBroken(rejected)->throw(catch me!)', 'errorAffected(catch me!)->reject(catch me!)']);
});
+
+
+ it('should have functions `finally` and `catch`', function() {
+ var rejectedPromise = q.reject('rejected');
+ expect(rejectedPromise['finally']).not.toBeUndefined();
+ expect(rejectedPromise['catch']).not.toBeUndefined();
+ });
});