@@ -11,7 +11,7 @@ describe('Observable.prototype.catch()', function () {
11
11
} )
12
12
. subscribe ( function ( ) { } ,
13
13
function ( err ) {
14
- expect ( 'this was called') . not . toBeTruthy ( ) ;
14
+ done . fail ( 'should not be called') ;
15
15
} ,
16
16
done ) ;
17
17
} ) ;
@@ -31,7 +31,7 @@ describe('Observable.prototype.catch()', function () {
31
31
. subscribe ( function ( x ) {
32
32
expect ( x ) . toBe ( expected . shift ( ) ) ;
33
33
} , function ( err ) {
34
- expect ( 'this was called') . not . toBeTruthy ( ) ;
34
+ done . fail ( 'should not be called') ;
35
35
} , function ( ) {
36
36
done ( ) ;
37
37
} ) ;
@@ -59,7 +59,7 @@ describe('Observable.prototype.catch()', function () {
59
59
expect ( err ) . toBe ( 'done' ) ;
60
60
done ( ) ;
61
61
} , function ( ) {
62
- expect ( 'this was called') . not . toBeTruthy ( ) ;
62
+ done . fail ( 'should not be called') ;
63
63
} ) ;
64
64
} ) ;
65
65
@@ -78,7 +78,7 @@ describe('Observable.prototype.catch()', function () {
78
78
. subscribe ( function ( x ) {
79
79
expect ( x ) . toBe ( expected . shift ( ) ) ;
80
80
} , function ( err ) {
81
- expect ( 'this was called') . not . toBeTruthy ( ) ;
81
+ done . fail ( 'should not be called') ;
82
82
} , function ( ) {
83
83
done ( ) ;
84
84
} ) ;
@@ -102,7 +102,7 @@ describe('Observable.prototype.catch()', function () {
102
102
expect ( err ) . toBe ( 'haha' ) ;
103
103
done ( ) ;
104
104
} , function ( ) {
105
- expect ( 'this was called') . not . toBeTruthy ( ) ;
105
+ done . fail ( 'should not be called') ;
106
106
} ) ;
107
107
} ) ;
108
- } ) ;
108
+ } ) ;
0 commit comments