@@ -766,6 +766,7 @@ describe('service.all() and next service.get()', () => {
766766 map ( emit => {
767767 expect ( http_request_spy ) . not . toHaveBeenCalled ( ) ;
768768 expect ( emit . relationships . author . data . attributes . name ) . toBeTruthy ( ) ;
769+
769770 return { loaded : emit . loaded , source : emit . source } ;
770771 } ) ,
771772 toArray ( )
@@ -796,8 +797,8 @@ describe('service.all() and next service.get()', () => {
796797 let book : Book = await booksService . get ( '1' , { include : [ 'author' ] } ) . toPromise ( ) ;
797798 expect ( book . id ) . toBe ( '1' ) ;
798799 test_response_subject . complete ( ) ;
799-
800- let books_api = TestFactory . getCollectionDocumentData ( Book , 1 , [ 'author' ] ) ;
800+ // eslint-disable-next-line
801+ let books_api : IDocumentData < Resource > = TestFactory . getCollectionDocumentData ( Book , 1 , [ 'author' ] ) ;
801802 books_api . data [ 0 ] . id = '1' ;
802803 test_response_subject = new BehaviorSubject ( new HttpResponse ( ) ) ;
803804 test_response_subject . next ( new HttpResponse ( { body : books_api } ) ) ;
@@ -812,6 +813,7 @@ describe('service.all() and next service.get()', () => {
812813 if ( emit . loaded ) {
813814 expect ( emit . data [ 0 ] . relationships . author . data . attributes . name ) . toBeTruthy ( ) ;
814815 }
816+
815817 return { loaded : emit . loaded , source : emit . source } ;
816818 } ) ,
817819 toArray ( )
@@ -995,6 +997,7 @@ describe('service.get()', () => {
995997 let emits : Array < {
996998 loaded : boolean ;
997999 source : SourceType ;
1000+ // eslint-disable-next-line max-lines
9981001 } > = await booksService
9991002 . get ( '1' , { ttl : 1000 , include : [ 'author' ] } )
10001003 . pipe (
@@ -1251,7 +1254,7 @@ describe('service.get()', () => {
12511254 test_response_subject . next ( new HttpResponse ( { body : body_resource } ) ) ;
12521255
12531256 book . ttl = 0 ;
1254- let json_ripper = new JsonRipper ( ) ;
1257+ let json_ripper : JsonRipper = new JsonRipper ( ) ;
12551258 json_ripper . saveResource ( book ) ;
12561259 let cachememory : CacheMemory = CacheMemory . getInstance ( ) ;
12571260 cachememory . removeResource ( 'books' , '1' ) ; // kill only memory cache
0 commit comments