We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49aa4c6 commit 38feab9Copy full SHA for 38feab9
test/promise.js
@@ -11,6 +11,18 @@ describe('promise', function() {
11
});
12
13
14
+ describe('catch', function(){
15
+ it('shoud catch exception.', function(done) {
16
+ var promise = new AV.Promise(function(resolve) {
17
+ throw 'test error';
18
+ });
19
+ promise.catch(function(error) {
20
+ expect(error).to.be('test error');
21
+ done();
22
23
24
25
+
26
describe('always and finally', function(){
27
it('should call always and finally', function(done){
28
var p = new AV.Promise(function(resolve, reject) {
0 commit comments