File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -737,7 +737,7 @@ describe('basic usage', function() {
737
737
expect ( person2 ) . toEqual ( jasmine . any ( Person ) ) ;
738
738
} ) ;
739
739
740
- it ( 'should not include $promise and $resolved when resource is toJson\'ed' , function ( ) {
740
+ it ( 'should not include $promise, $resolved and $cancelRequest when resource is toJson\'ed' , function ( ) {
741
741
$httpBackend . expect ( 'GET' , '/CreditCard/123' ) . respond ( { id : 123 , number : '9876' } ) ;
742
742
var cc = CreditCard . get ( { id : 123 } ) ;
743
743
$httpBackend . flush ( ) ;
@@ -750,6 +750,7 @@ describe('basic usage', function() {
750
750
var json = JSON . parse ( angular . toJson ( cc ) ) ;
751
751
expect ( json . $promise ) . not . toBeDefined ( ) ;
752
752
expect ( json . $resolved ) . not . toBeDefined ( ) ;
753
+ expect ( json . $cancelRequest ) . not . toBeDefined ( ) ;
753
754
expect ( json ) . toEqual ( { id : 123 , number : '9876' , $myProp : 'still here' } ) ;
754
755
} ) ;
755
756
You can’t perform that action at this time.
0 commit comments